Created
February 8, 2022 06:05
-
-
Save gunesmes/5475c15a285e4eb665b2e2a126e6cbfb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// 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