Skip to content

Commit

Permalink
Fix screenshots test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Petersson committed Dec 8, 2023
1 parent 6f66168 commit 7c20700
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}()
Expand Down
10 changes: 8 additions & 2 deletions ios/MullvadVPNScreenshots/MullvadVPNScreenshots.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7c20700

Please sign in to comment.