-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
For #6652 - XCUITests fix FxA tests after new ui for QR code
add screenshot tests and IDs for the new buttons add comment and use ids fix sync int tests
- Loading branch information
1 parent
a5b94d1
commit a73d645
Showing
7 changed files
with
47 additions
and
29 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
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 |
---|---|---|
|
@@ -24,15 +24,8 @@ class SyncUITests: BaseTestCase { | |
// Check menu available from HomeScreenPanel | ||
navigator.goto(BrowserTabMenu) | ||
waitForExistence(app.tables["Context Menu"].cells["menu-sync"]) | ||
navigator.goto(FxASigninScreen) | ||
verifyFxASigninScreen() | ||
|
||
// Check menu available from a website | ||
navigator.openURL("mozilla.org") | ||
waitUntilPageLoad() | ||
navigator.goto(BrowserTabMenu) | ||
waitForExistence(app.tables["Context Menu"].cells["menu-sync"]) | ||
navigator.goto(FxASigninScreen) | ||
navigator.goto(Intro_FxASignin) | ||
navigator.performAction(Action.OpenEmailToSignIn) | ||
verifyFxASigninScreen() | ||
} | ||
|
||
|
@@ -57,12 +50,7 @@ class SyncUITests: BaseTestCase { | |
waitForExistence(app.webViews.staticTexts["Valid email required"]) | ||
|
||
// Enter only email, wrong and correct and tap sign in | ||
userState.fxaUsername = "bademail" | ||
navigator.performAction(Action.FxATypeEmail) | ||
navigator.performAction(Action.FxATapOnContinueButton) | ||
waitForExistence(app.webViews.staticTexts["Valid email required"]) | ||
|
||
userState.fxaUsername = "[email protected]" | ||
userState.fxaUsername = "[email protected]" | ||
navigator.performAction(Action.FxATypeEmail) | ||
navigator.performAction(Action.FxATapOnSignInButton) | ||
|
||
|
@@ -104,6 +92,15 @@ class SyncUITests: BaseTestCase { | |
app.secureTextFields.element(boundBy: 0).typeText(XCUIKeyboardKey.delete.rawValue) | ||
waitForNoExistence(app.webViews.staticTexts["Show password"]) | ||
} | ||
|
||
func testQRPairing() { | ||
navigator.goto(Intro_FxASignin) | ||
// QR does not work on sim but checking that the button works, no crash | ||
navigator.performAction(Action.OpenEmailToQR) | ||
waitForExistence(app.navigationBars["Client.FirefoxAccountSignInView"], timeout: 5) | ||
app.navigationBars["Client.FirefoxAccountSignInView"].buttons["Close"].tap() | ||
waitForExistence(app.collectionViews.cells["TopSitesCell"]) | ||
} | ||
|
||
// Smoketest | ||
/*Disabled due to the new 6 digits authen code to verify account | ||
|
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