diff --git a/MastodonUITests/MastodonUISnapshotTests.swift b/MastodonUITests/MastodonUISnapshotTests.swift index aab493cf7..9c237808b 100644 --- a/MastodonUITests/MastodonUISnapshotTests.swift +++ b/MastodonUITests/MastodonUISnapshotTests.swift @@ -59,6 +59,7 @@ extension MastodonUISnapshotTests { try await testSnapshotHome() try await testSnapshotSearch() + try await testSnapshotNotification() try await testSnapshotProfile() try await testSnapshotCompose() } @@ -97,6 +98,23 @@ extension MastodonUISnapshotTests { takeSnapshot(name: "Search - 3") } + func testSnapshotNotification() async throws { + let app = XCUIApplication() + app.launch() + + tapTab(app: app, tab: "Notification") + try await Task.sleep(nanoseconds: .second * 3) + takeSnapshot(name: "Notification - 1") + + tapTab(app: app, tab: "Notification") + try await Task.sleep(nanoseconds: .second * 3) + takeSnapshot(name: "Notification - 2") + + tapTab(app: app, tab: "Notification") + try await Task.sleep(nanoseconds: .second * 3) + takeSnapshot(name: "Notification - 3") + } + func testSnapshotProfile() async throws { let username = ProcessInfo.processInfo.environment["username_snapshot"] ?? "Gargron"