From ffddebc39121a7e3d0753a516b588832cb3d7012 Mon Sep 17 00:00:00 2001 From: mojganii Date: Thu, 24 Oct 2024 22:18:29 +0200 Subject: [PATCH] Remove UITest for Daita from VPNSettings --- .../Pages/VPNSettingsPage.swift | 37 ------------------- .../SettingsMigrationTests.swift | 2 - 2 files changed, 39 deletions(-) diff --git a/ios/MullvadVPNUITests/Pages/VPNSettingsPage.swift b/ios/MullvadVPNUITests/Pages/VPNSettingsPage.swift index 570f32ab080f..197035f58ff5 100644 --- a/ios/MullvadVPNUITests/Pages/VPNSettingsPage.swift +++ b/ios/MullvadVPNUITests/Pages/VPNSettingsPage.swift @@ -127,21 +127,6 @@ class VPNSettingsPage: Page { return self } - @discardableResult func tapDaitaSwitch() -> Self { - app.cells[AccessibilityIdentifier.daitaSwitch] - .switches[AccessibilityIdentifier.customSwitch] - .tap() - let promptIsShown = app - .otherElements[AccessibilityIdentifier.daitaPromptAlert.rawValue] - .waitForExistence(timeout: 1.0) - - if promptIsShown { - DaitaPromptAlert(app) - .tapEnableAnyway() - } - return self - } - @discardableResult func verifyCustomWireGuardPortSelected(portNumber: String) -> Self { let cell = app.cells[AccessibilityIdentifier.wireGuardCustomPort] XCTAssertTrue(cell.isSelected) @@ -193,28 +178,6 @@ class VPNSettingsPage: Page { return self } - @discardableResult func verifyDaitaSwitchOn() -> Self { - let switchElement = app.cells[.daitaSwitch] - .switches[AccessibilityIdentifier.customSwitch] - - guard let switchValue = switchElement.value as? String else { - XCTFail("Failed to read switch state") - return self - } - - XCTAssertEqual(switchValue, "1") - return self - } - - @discardableResult func tapDaitaSwitchIfOn() -> Self { - let switchElement = app.cells[.daitaSwitch].switches[AccessibilityIdentifier.customSwitch] - - if switchElement.value as? String == "1" { - tapDaitaSwitch() - } - return self - } - @discardableResult func tapMultihopSwitchIfOn() -> Self { let switchElement = app.cells[.multihopSwitch].switches[AccessibilityIdentifier.customSwitch] diff --git a/ios/MullvadVPNUITests/SettingsMigrationTests.swift b/ios/MullvadVPNUITests/SettingsMigrationTests.swift index 85ab71bafa34..3d73e82e11ed 100644 --- a/ios/MullvadVPNUITests/SettingsMigrationTests.swift +++ b/ios/MullvadVPNUITests/SettingsMigrationTests.swift @@ -121,7 +121,6 @@ class SettingsMigrationTests: BaseUITestCase { .tapUDPOverTCPPort80Cell() .tapQuantumResistantTunnelExpandButton() .tapQuantumResistantTunnelOnCell() - .tapDaitaSwitch() .tapMultihopSwitch() } @@ -154,7 +153,6 @@ class SettingsMigrationTests: BaseUITestCase { .verifyUDPOverTCPPort80Selected() .tapQuantumResistantTunnelExpandButton() .verifyQuantumResistantTunnelOnSelected() - .verifyDaitaSwitchOn() .verifyMultihopSwitchOn() } }