mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 20:39:24 +00:00
Add support for space rooms on the JoinRoomScreen. (#4582)
* Add support for space rooms to JoinRoomScreenModel. * Make a single wrapper type for JoinRoomScreen previews to simplify instantiation. * Add previews for JoinRoomScreen for spaces.
This commit is contained in:
@@ -341,12 +341,24 @@ extension PreviewTests {
|
||||
}
|
||||
}
|
||||
|
||||
func testJoinRoomScreenSpace() async throws {
|
||||
for (index, preview) in JoinRoomScreenSpace_Previews._allPreviews.enumerated() {
|
||||
try await assertSnapshots(matching: preview, step: index)
|
||||
}
|
||||
}
|
||||
|
||||
func testJoinRoomScreen() async throws {
|
||||
for (index, preview) in JoinRoomScreen_Previews._allPreviews.enumerated() {
|
||||
try await assertSnapshots(matching: preview, step: index)
|
||||
}
|
||||
}
|
||||
|
||||
func testJoinedMembersBadgeView() async throws {
|
||||
for (index, preview) in JoinedMembersBadgeView_Previews._allPreviews.enumerated() {
|
||||
try await assertSnapshots(matching: preview, step: index)
|
||||
}
|
||||
}
|
||||
|
||||
func testKnockRequestCell() async throws {
|
||||
for (index, preview) in KnockRequestCell_Previews._allPreviews.enumerated() {
|
||||
try await assertSnapshots(matching: preview, step: index)
|
||||
|
||||
Reference in New Issue
Block a user