Skip to content

Commit

Permalink
Attempt to fix the every flakey app lock setup test
Browse files Browse the repository at this point in the history
We noticed that confirming the PIN will automatically hide the keyboard which makes the whole screen shift down while attempting to press the allow button. We also see an `App animations complete notification not received, will attempt to continue.` warning which seems to point to the same issue.
  • Loading branch information
stefanceriu committed Jan 29, 2025
1 parent d412c10 commit 59cc9c2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion UITests/Sources/AppLockSetupUITests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,17 @@ class AppLockSetupUITests: XCTestCase {

enterPIN()

// This test has been especially flakey. We noticed that confirming the PIN will
// automatically hide the keyboard which makes the whole screen shift down while
// attempting to press the allow button. We also see an `App animations complete
// notification not received, will attempt to continue.` warning which seems to
// point to the same issue.
try await Task.sleep(for: .seconds(1.0))

// Setup biometrics screen.
try await app.assertScreenshot(.appLockSetupFlow, step: Step.setupBiometrics)

app.buttons[A11yIdentifiers.appLockSetupBiometricsScreen.allow].tap()
app.buttons[A11yIdentifiers.appLockSetupBiometricsScreen.allow].tapCenter()

// Settings screen.
try await app.assertScreenshot(.appLockSetupFlow, step: Step.settings)
Expand Down

0 comments on commit 59cc9c2

Please sign in to comment.