From 1171aef0adbd89742d9b56cb5a8b6ba2ff980688 Mon Sep 17 00:00:00 2001 From: Stefan Ceriu Date: Thu, 14 Nov 2024 15:48:16 +0200 Subject: [PATCH] Wait for reset waiting indicator to be removed before snapshotting the encryption reset screen --- UITests/Sources/EncryptionResetUITests.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/UITests/Sources/EncryptionResetUITests.swift b/UITests/Sources/EncryptionResetUITests.swift index 5bc5bea00d..6000b0d1c2 100644 --- a/UITests/Sources/EncryptionResetUITests.swift +++ b/UITests/Sources/EncryptionResetUITests.swift @@ -26,6 +26,9 @@ class EncryptionResetUITests: XCTestCase { // Confirm the intent to reset. app.buttons[A11yIdentifiers.encryptionResetScreen.continueReset].tap() app.buttons[A11yIdentifiers.alertInfo.primaryButton].tap() + + try await Task.sleep(for: .seconds(2.0)) + try await app.assertScreenshot(.encryptionReset, step: Step.passwordScreen) // Enter the password and submit.