diff options
| author | Jon Petersson <jon.petersson@kvadrat.se> | 2023-12-06 11:22:18 +0100 |
|---|---|---|
| committer | Bug Magnet <marco.nikic@mullvad.net> | 2023-12-08 15:52:29 +0100 |
| commit | 881c4c4b0b517708f058010a616d9bef271df39a (patch) | |
| tree | 099d18294d114fa60eeadc15d9e35cf2da18527c | |
| parent | 4c496be6791da025c9f9e555727def1e7e660537 (diff) | |
| download | mullvadvpn-881c4c4b0b517708f058010a616d9bef271df39a.tar.xz mullvadvpn-881c4c4b0b517708f058010a616d9bef271df39a.zip | |
Fix screenshots test
| -rw-r--r-- | ios/MullvadVPN/View controllers/Settings/SettingsHeaderView.swift | 1 | ||||
| -rw-r--r-- | ios/MullvadVPNScreenshots/MullvadVPNScreenshots.swift | 10 |
2 files changed, 8 insertions, 3 deletions
diff --git a/ios/MullvadVPN/View controllers/Settings/SettingsHeaderView.swift b/ios/MullvadVPN/View controllers/Settings/SettingsHeaderView.swift index dbe1e62d11..ea790a8c28 100644 --- a/ios/MullvadVPN/View controllers/Settings/SettingsHeaderView.swift +++ b/ios/MullvadVPN/View controllers/Settings/SettingsHeaderView.swift @@ -32,7 +32,6 @@ class SettingsHeaderView: UITableViewHeaderFooterView { let collapseButton: UIButton = { let button = UIButton(type: .custom) button.accessibilityIdentifier = "CollapseButton" - button.isAccessibilityElement = false button.tintColor = .white return button }() diff --git a/ios/MullvadVPNScreenshots/MullvadVPNScreenshots.swift b/ios/MullvadVPNScreenshots/MullvadVPNScreenshots.swift index 56e6f5e4fa..77a8380f4e 100644 --- a/ios/MullvadVPNScreenshots/MullvadVPNScreenshots.swift +++ b/ios/MullvadVPNScreenshots/MullvadVPNScreenshots.swift @@ -87,8 +87,14 @@ class MullvadVPNScreenshots: XCTestCase { cityCell.buttons["CollapseButton"].tap() snapshot("SelectLocation") - // Tap the "Done" button to dismiss the "Select location" controller - app.navigationBars.buttons.firstMatch.tap() + // Tap the "Filter" button and expand each relay filter + app.navigationBars.buttons["Filter"].tap() + app.otherElements["Ownership"].buttons["CollapseButton"].tap() + app.otherElements["Providers"].buttons["CollapseButton"].tap() + snapshot("RelayFilter") + + app.navigationBars.buttons["Cancel"].tap() + app.navigationBars.buttons["Done"].tap() } // Open Settings |
