diff --git a/ios/MullvadVPNUITests/Pages/TunnelControlPage.swift b/ios/MullvadVPNUITests/Pages/TunnelControlPage.swift index 5b9bf715c00d..fc8f6c044aef 100644 --- a/ios/MullvadVPNUITests/Pages/TunnelControlPage.swift +++ b/ios/MullvadVPNUITests/Pages/TunnelControlPage.swift @@ -132,7 +132,7 @@ class TunnelControlPage: Page { // Should do four connection attempts but due to UI bug sometimes only two are displayed, sometimes all four if connectionAttempts.count == 4 { // Expected retries flow for (attemptIndex, attempt) in connectionAttempts.enumerated() { - if attemptIndex == 0 || attemptIndex == 1 || attemptIndex == 2 { + if attemptIndex < 3 { XCTAssertEqual(attempt.protocolName, "UDP") } else if attemptIndex == 3 { XCTAssertEqual(attempt.protocolName, "TCP")