Include the Members and Add Rooms screens in the spaces UI tests. (#4981)
* Expand the space flow UI tests to include the add rooms screen. Also fixes some failures in these tests due to the room/space title now being a button. * Expand the space flow UI tests to include the space members screen. * Reset AppSettings before running preview tests.
This commit is contained in:
@@ -27,6 +27,7 @@ extension PreviewTests {
|
||||
|
||||
{% for type in types.types where (type.implements.TestablePreview or type.based.TestablePreview or type|annotated:"TestablePreview") and type.name != "TestablePreview" %}
|
||||
func test{{ type.name|replace:"_Previews", "" }}() async throws {
|
||||
AppSettings.resetAllSettings() // Ensure this test's previews start with fresh settings.
|
||||
for (index, preview) in {{ type.name }}._allPreviews.enumerated() {
|
||||
try await assertSnapshots(matching: preview, step: index)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user