From 26e659dce9c9f7194f07441a389c4a65cabb5d9a Mon Sep 17 00:00:00 2001 From: Stefan Ceriu Date: Mon, 23 Mar 2026 18:07:08 +0200 Subject: [PATCH] Add RoomThreadListScreen preview snapshots. --- ElementX/Sources/Mocks/RoomThreadListServiceProxyMock.swift | 1 + .../PreviewTests/roomThreadListScreen.iPad-en-GB-0.png | 3 +++ .../PreviewTests/roomThreadListScreen.iPad-pseudo-0.png | 3 +++ .../PreviewTests/roomThreadListScreen.iPhone-en-GB-0.png | 3 +++ .../PreviewTests/roomThreadListScreen.iPhone-pseudo-0.png | 3 +++ 5 files changed, 13 insertions(+) create mode 100644 PreviewTests/Sources/__Snapshots__/PreviewTests/roomThreadListScreen.iPad-en-GB-0.png create mode 100644 PreviewTests/Sources/__Snapshots__/PreviewTests/roomThreadListScreen.iPad-pseudo-0.png create mode 100644 PreviewTests/Sources/__Snapshots__/PreviewTests/roomThreadListScreen.iPhone-en-GB-0.png create mode 100644 PreviewTests/Sources/__Snapshots__/PreviewTests/roomThreadListScreen.iPhone-pseudo-0.png diff --git a/ElementX/Sources/Mocks/RoomThreadListServiceProxyMock.swift b/ElementX/Sources/Mocks/RoomThreadListServiceProxyMock.swift index d96183526..5c10aad56 100644 --- a/ElementX/Sources/Mocks/RoomThreadListServiceProxyMock.swift +++ b/ElementX/Sources/Mocks/RoomThreadListServiceProxyMock.swift @@ -16,6 +16,7 @@ extension RoomThreadListServiceProxyMock { self.init() itemsPublisher = CurrentValueSubject(configuration.items).asCurrentValuePublisher() + paginationStatePublisher = CurrentValueSubject(.idle(endReached: true)).asCurrentValuePublisher() paginateReturnValue = .success(()) } diff --git a/PreviewTests/Sources/__Snapshots__/PreviewTests/roomThreadListScreen.iPad-en-GB-0.png b/PreviewTests/Sources/__Snapshots__/PreviewTests/roomThreadListScreen.iPad-en-GB-0.png new file mode 100644 index 000000000..84f0949df --- /dev/null +++ b/PreviewTests/Sources/__Snapshots__/PreviewTests/roomThreadListScreen.iPad-en-GB-0.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c3a9ed8255235e4c9b0d9609b7d0156156cd27c467bcc583972e7d1df899c7ee +size 157360 diff --git a/PreviewTests/Sources/__Snapshots__/PreviewTests/roomThreadListScreen.iPad-pseudo-0.png b/PreviewTests/Sources/__Snapshots__/PreviewTests/roomThreadListScreen.iPad-pseudo-0.png new file mode 100644 index 000000000..99045b162 --- /dev/null +++ b/PreviewTests/Sources/__Snapshots__/PreviewTests/roomThreadListScreen.iPad-pseudo-0.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:50f34e65b7db32aff0f0ebbe4717c62787b8cd060164ba1fc0806baba44ef544 +size 158113 diff --git a/PreviewTests/Sources/__Snapshots__/PreviewTests/roomThreadListScreen.iPhone-en-GB-0.png b/PreviewTests/Sources/__Snapshots__/PreviewTests/roomThreadListScreen.iPhone-en-GB-0.png new file mode 100644 index 000000000..cc5335080 --- /dev/null +++ b/PreviewTests/Sources/__Snapshots__/PreviewTests/roomThreadListScreen.iPhone-en-GB-0.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:86dd854e8be105efcba365c64151c61272766ece87815cbdedd3aa8951c528ac +size 104952 diff --git a/PreviewTests/Sources/__Snapshots__/PreviewTests/roomThreadListScreen.iPhone-pseudo-0.png b/PreviewTests/Sources/__Snapshots__/PreviewTests/roomThreadListScreen.iPhone-pseudo-0.png new file mode 100644 index 000000000..6552bcf85 --- /dev/null +++ b/PreviewTests/Sources/__Snapshots__/PreviewTests/roomThreadListScreen.iPhone-pseudo-0.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:75ffd318954dcc6cdbd53416ee7c576892dbb0e8f53f211b6799423b8ba89c83 +size 104923