mirror of
https://github.com/mastodon/mastodon-ios.git
synced 2025-01-03 12:29:39 +01:00
feat: add notification snapshot
This commit is contained in:
parent
f2f71e7102
commit
633d1ae62a
@ -59,6 +59,7 @@ extension MastodonUISnapshotTests {
|
|||||||
|
|
||||||
try await testSnapshotHome()
|
try await testSnapshotHome()
|
||||||
try await testSnapshotSearch()
|
try await testSnapshotSearch()
|
||||||
|
try await testSnapshotNotification()
|
||||||
try await testSnapshotProfile()
|
try await testSnapshotProfile()
|
||||||
try await testSnapshotCompose()
|
try await testSnapshotCompose()
|
||||||
}
|
}
|
||||||
@ -97,6 +98,23 @@ extension MastodonUISnapshotTests {
|
|||||||
takeSnapshot(name: "Search - 3")
|
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 {
|
func testSnapshotProfile() async throws {
|
||||||
let username = ProcessInfo.processInfo.environment["username_snapshot"] ?? "Gargron"
|
let username = ProcessInfo.processInfo.environment["username_snapshot"] ?? "Gargron"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user