summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNiklas Berglund <niklas.berglund@gmail.com>2024-04-09 09:45:15 +0200
committerBug Magnet <marco.nikic@mullvad.net>2024-04-10 16:58:22 +0200
commit77f066bde558008ce86d422ffd7226e118a05171 (patch)
treec973cf616a0a6f82bf3876790b6c62dbb6d95907
parentb2c94cceb1498e01ce707c9ca552bbe69b92e893 (diff)
downloadmullvadvpn-77f066bde558008ce86d422ffd7226e118a05171.tar.xz
mullvadvpn-77f066bde558008ce86d422ffd7226e118a05171.zip
Fix for screenshot tests failing
-rw-r--r--ios/MullvadVPNScreenshots/MullvadVPNScreenshots.swift6
1 files changed, 3 insertions, 3 deletions
diff --git a/ios/MullvadVPNScreenshots/MullvadVPNScreenshots.swift b/ios/MullvadVPNScreenshots/MullvadVPNScreenshots.swift
index bae6c14b74..18b53f5632 100644
--- a/ios/MullvadVPNScreenshots/MullvadVPNScreenshots.swift
+++ b/ios/MullvadVPNScreenshots/MullvadVPNScreenshots.swift
@@ -74,8 +74,8 @@ class MullvadVPNScreenshots: XCTestCase {
if cityCell.exists {
cityCell.tap()
} else {
- _ = countryCell.buttons[AccessibilityIdentifier.collapseButton.rawValue].waitForExistence(timeout: 5)
- countryCell.buttons[AccessibilityIdentifier.collapseButton.rawValue].tap()
+ _ = countryCell.buttons[AccessibilityIdentifier.expandButton.rawValue].waitForExistence(timeout: 5)
+ countryCell.buttons[AccessibilityIdentifier.expandButton.rawValue].tap()
cityCell.tap()
}
@@ -87,7 +87,7 @@ class MullvadVPNScreenshots: XCTestCase {
// Re-open Select location controller (iPhone only)
if case .phone = UIDevice.current.userInterfaceIdiom {
app.buttons[AccessibilityIdentifier.selectLocationButton.rawValue].tap()
- cityCell.buttons[AccessibilityIdentifier.collapseButton.rawValue].tap()
+ cityCell.buttons[AccessibilityIdentifier.expandButton.rawValue].tap()
snapshot("SelectLocation")
// Tap the "Filter" button and expand each relay filter