mirror of
https://github.com/element-hq/element-x-ios.git
synced 2025-03-10 13:37:11 +00:00
Attempt to fix the every flakey app lock setup test
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.
This commit is contained in:
parent
d412c10352
commit
59cc9c27ec
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user