Update snapshoting functions names to avoid snapshot duplciates

This commit is contained in:
Maciej Gomółka
2026-05-06 09:56:17 +02:00
committed by Maciej Gomółka
parent 46dff24221
commit c2f56533df
25 changed files with 3 additions and 3 deletions
@@ -42,7 +42,7 @@ struct MailboxLegacyBottomBarSnapshotTests {
name: "unread_deselected_unknown_count"
),
])
func allStates(_ testCase: TestCase) {
func snapshotLegacyBottomBar(_ testCase: TestCase) {
assertSelfSizingSnapshot(
of: MailboxLegacyBottomBarView(state: testCase.state, action: { _ in }),
named: testCase.name
@@ -34,7 +34,7 @@ struct MailboxLegacyTopBarSnapshotTests {
TestCase(state: .includeSpamTrash(isSelected: false), name: "spam_trash_deselected"),
TestCase(state: .includeSpamTrash(isSelected: true), name: "spam_trash_selected"),
])
func allStates(_ testCase: TestCase) {
func snapshotLegacyTopBar(_ testCase: TestCase) {
assertSelfSizingSnapshot(
of: MailboxLegacyTopBar(state: testCase.state, action: { _ in }),
named: testCase.name
@@ -35,7 +35,7 @@ struct MailboxLiquidGlassTopBarSnapshotTests {
TestCase(state: .includeSpamTrash(isSelected: true), name: "spam_trash_selected"),
])
@available(iOS 26, *)
func allStates(_ testCase: TestCase) {
func snapshotLiquidGlassTop(_ testCase: TestCase) {
assertSelfSizingSnapshot(
of: MailboxLiquidGlassTopBar(state: testCase.state, action: { _ in }),
drawHierarchyInKeyWindow: true,