Skip to content

Commit

Permalink
Update UITests
Browse files Browse the repository at this point in the history
  • Loading branch information
fbernutz committed Dec 29, 2024
1 parent 96fc874 commit d7264aa
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions CineasteUITests/ScreenshotsUITests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,11 @@ class ScreenshotsUITests: XCTestCase {
// "-UIPreferredContentSizeCategoryName",
// "UICTContentSizeCategoryL"
]

Task {
await setupSnapshot(self.app, waitForAnimations: true)
}
}

@MainActor
func testScreenshots() {
setupSnapshot(app, waitForAnimations: true)
app.launch()

resetMoviesIfNeeded()
Expand Down Expand Up @@ -106,10 +104,12 @@ class ScreenshotsUITests: XCTestCase {
}
}

@MainActor
func testScreenshotsOfSearchWithDarkMode() {
app.launchArguments += [
"UI_TEST_DARK_MODE"
]
setupSnapshot(app, waitForAnimations: true)
app.launch()

screenshotSearchWithMarkers()
Expand Down Expand Up @@ -180,10 +180,8 @@ extension ScreenshotsUITests {
}
}

private func namedSnapshot(_ name: String) {
Task {
await snapshot(snapshotName(for: name), timeWaitingForIdle: 0)
}
@MainActor private func namedSnapshot(_ name: String) {
snapshot(snapshotName(for: name), timeWaitingForIdle: 0)
}

private func snapshotName(for name: String) -> String {
Expand Down

0 comments on commit d7264aa

Please sign in to comment.