Skip to content

Commit

Permalink
For #6587 - L10n XCUITest fix failing test for right to left writing …
Browse files Browse the repository at this point in the history
…locales (#6588)
  • Loading branch information
isabelrios authored May 12, 2020
1 parent 92a12b9 commit 13db9e3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions L10nSnapshotTests/L10nSuite1SnapshotTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,14 @@ class L10nSuite1SnapshotTests: L10nBaseSnapshotTests {
navigator.goto(SetPasscodeScreen)
snapshot("SetPasscodeScreen-1-nopasscode")
userState.newPasscode = "111111"

// Workaround to be able to type numbers in right to left locales
waitForExistence(app.navigationBars["Set Passcode"])
if (app.keys["123"].exists) {
app.keys["123"].tap()
}
waitForExistence(app.keys["1"])

navigator.performAction(Action.SetPasscodeTypeOnce)
snapshot("SetPasscodeScreen-2-typepasscode")

Expand Down

0 comments on commit 13db9e3

Please sign in to comment.