diff options
| author | Bug Magnet <marco.nikic@mullvad.net> | 2025-06-02 13:53:05 +0200 |
|---|---|---|
| committer | Bug Magnet <marco.nikic@mullvad.net> | 2025-06-02 13:53:05 +0200 |
| commit | fcbc1926dc65a7b46dcb9bf5ddc05c63e61c5a86 (patch) | |
| tree | 0105e8d312edf833140ee68244fb267335e34610 | |
| parent | 5def796e705f1f88891a58bf6bad207bc2fc073d (diff) | |
| parent | 68b255c32344a7a90235dde36cc4f9fc1d1342c8 (diff) | |
| download | mullvadvpn-fcbc1926dc65a7b46dcb9bf5ddc05c63e61c5a86.tar.xz mullvadvpn-fcbc1926dc65a7b46dcb9bf5ddc05c63e61c5a86.zip | |
Merge branch 'fix-ui-tests-log-in-too-fast'
| -rw-r--r-- | ios/MullvadVPNUITests/Base/BaseUITestCase.swift | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ios/MullvadVPNUITests/Base/BaseUITestCase.swift b/ios/MullvadVPNUITests/Base/BaseUITestCase.swift index 71fbbf0b05..df03759409 100644 --- a/ios/MullvadVPNUITests/Base/BaseUITestCase.swift +++ b/ios/MullvadVPNUITests/Base/BaseUITestCase.swift @@ -320,6 +320,13 @@ class BaseUITestCase: XCTestCase { .getSuccessIconShown() if successIconShown == false { + // If the login happened too fast, the UI harness will miss the success icon being shown + // Check if the app is already on main page, and continue if it is. + if app.otherElements[.headerBarView].exists { + successIconShown = true + break + } + // Give it some time to show up. App might be waiting for a network connection to timeout. LoginPage(app).waitForAccountNumberSubmitButton() } |
