Skip to content

Instantly share code, notes, and snippets.

@gunesmes
Created February 8, 2022 06:05
Show Gist options
  • Save gunesmes/5475c15a285e4eb665b2e2a126e6cbfb to your computer and use it in GitHub Desktop.
Save gunesmes/5475c15a285e4eb665b2e2a126e6cbfb to your computer and use it in GitHub Desktop.
//
// HomeScreen.swift
// TestDictionaryUITests
//
// Created by MESUT GUNES on 1.08.2021.
// Copyright © 2021 MesutGunes. All rights reserved.
//
import Foundation
import XCTest
class HomeScreen: BaseScreen {
private lazy var btnHomeScreen = app.buttons["Anasayfa"]
private lazy var btnDictionaryScreen = app.buttons["Sözlük"]
private lazy var btnLicenseScreen = app.buttons["License"]
private lazy var homeText = app.otherElements["readmeMd"]
private lazy var homeTitle = app.staticTexts["whyDictionary"]
lazy var baseElement = homeText
func validateReadmeLoaded() {
XCTAssertTrue(homeText.exists)
XCTAssertTrue(homeTitle.exists)
XCTAssertTrue(btnHomeScreen.exists)
XCTAssertTrue(btnLicenseScreen.exists)
XCTAssertTrue(btnDictionaryScreen.exists)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment