Update snapshoting functions names to avoid snapshot duplciates
@@ -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,
|
||||
|
||||
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 27 KiB |
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
|
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 9.9 KiB After Width: | Height: | Size: 9.9 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
|
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 31 KiB |
|
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 29 KiB |
|
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 33 KiB |
|
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 32 KiB |
|
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 35 KiB |
|
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 36 KiB |
|
Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 41 KiB |