From 633d1ae62a460c8486e8df1f4338193a7c791ef9 Mon Sep 17 00:00:00 2001 From: CMK Date: Fri, 4 Mar 2022 00:04:36 +0800 Subject: [PATCH] feat: add notification snapshot --- MastodonUITests/MastodonUISnapshotTests.swift | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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"