generated from StanfordBDHG/SwiftPackageTemplate
-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Include validation in tests that link maintains account id
- Loading branch information
Showing
3 changed files
with
48 additions
and
25 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -445,13 +445,14 @@ final class FirebaseAccountTests: XCTestCase { // swiftlint:disable:this type_bo | |
|
||
XCTAssertTrue(app.staticTexts["User, Anonymous"].waitForExistence(timeout: 2.0)) | ||
XCTAssertTrue(app.staticTexts["New User, Yes"].exists) | ||
XCTAssertTrue(app.staticTexts["Account Id, Stable"].exists) | ||
|
||
try app.signup(username: "[email protected]", password: "TestPassword2", givenName: "Leland", familyName: "Stanford", biography: "Bio") | ||
|
||
XCTAssertTrue(app.staticTexts["[email protected]"].waitForExistence(timeout: 2.0)) | ||
XCTAssertTrue(app.staticTexts["New User, Yes"].exists) // ensure new user flag persists | ||
XCTAssertTrue(app.staticTexts["Account Id, Stable"].exists) // ensure we actually linked the account and not accidentally created a new one | ||
|
||
// TODO: ensure account id is stable! | ||
app.buttons["Account Overview"].tap() | ||
XCTAssert(app.staticTexts["Leland Stanford"].waitForExistence(timeout: 2.0)) | ||
XCTAssert(app.staticTexts["Biography, Bio"].exists) | ||
|
@@ -502,3 +503,6 @@ extension XCUIApplication { | |
buttons["Close"].tap() | ||
} | ||
} | ||
|
||
|
||
// swiftlint:disable:this file_length |