Skip to content

Commit

Permalink
Remove UITest for Daita from VPNSettings
Browse files Browse the repository at this point in the history
  • Loading branch information
mojganii committed Oct 30, 2024
1 parent 3bbdf34 commit ffddebc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 39 deletions.
37 changes: 0 additions & 37 deletions ios/MullvadVPNUITests/Pages/VPNSettingsPage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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]

Expand Down
2 changes: 0 additions & 2 deletions ios/MullvadVPNUITests/SettingsMigrationTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ class SettingsMigrationTests: BaseUITestCase {
.tapUDPOverTCPPort80Cell()
.tapQuantumResistantTunnelExpandButton()
.tapQuantumResistantTunnelOnCell()
.tapDaitaSwitch()
.tapMultihopSwitch()
}

Expand Down Expand Up @@ -154,7 +153,6 @@ class SettingsMigrationTests: BaseUITestCase {
.verifyUDPOverTCPPort80Selected()
.tapQuantumResistantTunnelExpandButton()
.verifyQuantumResistantTunnelOnSelected()
.verifyDaitaSwitchOn()
.verifyMultihopSwitchOn()
}
}

0 comments on commit ffddebc

Please sign in to comment.