Skip to content

Commit

Permalink
Fix SwiftLint
Browse files Browse the repository at this point in the history
  • Loading branch information
jotaemepereira committed Nov 13, 2024
1 parent 345e508 commit 58440ac
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions UITests/FireWindowTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ class FireWindowTests: XCTestCase {
}

private func openSignUpSite() {
let addressBarTextField = app.windows.firstMatch.textFields["AddressBarViewController.addressBarTextField"].firstMatch
let addressBarTextField = app.windows.firstMatch.textFields["AddressBarViewController.addressBarTextField"].firstMatch
XCTAssertTrue(
addressBarTextField.waitForExistence(timeout: UITests.Timeouts.elementExistence),
"The address bar text field didn't become available in a reasonable timeframe."
Expand Down Expand Up @@ -260,11 +260,9 @@ class FireWindowTests: XCTestCase {
XCTAssertEqual(result, .completed, "No static texts were found in the app")

// After confirming static texts are available, iterate through them
for staticText in app.staticTexts.allElementsBoundByIndex {
if staticText.exists {
XCTAssertFalse(staticText.label.contains("Page #1"), "Unwanted string found in static text: \(staticText.label)")
XCTAssertFalse(staticText.label.contains("Page #2"), "Unwanted string found in static text: \(staticText.label)")
}
for staticText in app.staticTexts.allElementsBoundByIndex where staticText.exists {
XCTAssertFalse(staticText.label.contains("Page #1"), "Unwanted string found in static text: \(staticText.label)")
XCTAssertFalse(staticText.label.contains("Page #2"), "Unwanted string found in static text: \(staticText.label)")
}
}

Expand All @@ -285,12 +283,10 @@ class FireWindowTests: XCTestCase {
XCTAssertEqual(result, .completed, "No static texts were found in the app")

// After confirming static texts are available, iterate through them
for staticText in app.staticTexts.allElementsBoundByIndex {
if staticText.exists {
XCTAssertFalse(staticText.label.contains("Page #4"), "Unwanted string found in static text: \(staticText.label)")
XCTAssertFalse(staticText.label.contains("Page #5"), "Unwanted string found in static text: \(staticText.label)")
XCTAssertFalse(staticText.label.contains("Page #6"), "Unwanted string found in static text: \(staticText.label)")
}
for staticText in app.staticTexts.allElementsBoundByIndex where staticText.exists {
XCTAssertFalse(staticText.label.contains("Page #4"), "Unwanted string found in static text: \(staticText.label)")
XCTAssertFalse(staticText.label.contains("Page #5"), "Unwanted string found in static text: \(staticText.label)")
XCTAssertFalse(staticText.label.contains("Page #6"), "Unwanted string found in static text: \(staticText.label)")
}
}

Expand Down

0 comments on commit 58440ac

Please sign in to comment.