Skip to content

Commit

Permalink
Adapt tests to iOS 18
Browse files Browse the repository at this point in the history
  • Loading branch information
oblador committed Sep 24, 2024
1 parent f8809ee commit ca03bc1
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions HushUITests/HushUITests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,14 @@ class HushUITests: XCTestCase {

private func toggleContentBlockerEnabled(isOn: Bool) throws {
settingsApp.launch()
settingsApp.tables.cells.staticTexts["Safari"].tap()
settingsApp.tables.cells.staticTexts["Extensions"].firstMatch.tap()
if settingsApp.switches["Hush"].value as? String != (isOn ? "1" : "0") {
settingsApp.switches["Hush"].tap()
settingsApp.swipeUp()
settingsApp.staticTexts["Apps"].tap()
settingsApp.swipeUp()
settingsApp.staticTexts["Safari"].tap()
settingsApp.staticTexts["Extensions"].tap()
settingsApp.staticTexts["Hush"].tap()
if settingsApp.switches["Allow Extension"].value as? String != (isOn ? "1" : "0") {
settingsApp.switches["Allow Extension"].tap()
}
settingsApp.terminate()
}
Expand Down

0 comments on commit ca03bc1

Please sign in to comment.