Skip to content

Commit 20d4955

Browse files
authored
Update UI automation test to use return as name for button (#308)
1 parent d2afd42 commit 20d4955

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Samples/Swift/DaysUntilBirthday/DaysUntilBirthdayUITests(iOS)/DaysUntilBirthdayUITests_iOS.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class DaysUntilBirthdayUITests_iOS: XCTestCase {
6464

6565
extension DaysUntilBirthdayUITests_iOS {
6666
/// Performs a sign in.
67-
/// - returns: `true` if the sign in was succesfull.
67+
/// - returns: `true` if the sign in was successful.
6868
func signIn() -> Bool {
6969
let signInButton = sampleApp.buttons["GoogleSignInButton"]
7070
guard signInButton.exists else {
@@ -141,16 +141,16 @@ extension DaysUntilBirthdayUITests_iOS {
141141
guard sampleApp
142142
.keyboards
143143
.element
144-
.buttons["go"]
144+
.buttons["return"]
145145
.waitForExistence(timeout: timeout) else {
146-
XCTFail("Failed to find 'go' button")
146+
XCTFail("Failed to find 'return' button")
147147
return false
148148
}
149149

150150
sampleApp
151151
.secureTextFields["Enter your password"]
152152
.typeText(Credential.password.rawValue)
153-
sampleApp.keyboards.element.buttons["go"].tap()
153+
sampleApp.keyboards.element.buttons["return"].tap()
154154

155155
return true
156156
}

0 commit comments

Comments
 (0)