Allow joined rooms to be pushed within a space. (#4460)

* Allow joined rooms to be pushed within a space.

* Push a room in the space flow tests.

Also fixes some snapshots stale snapshots.

* Show the selected space/room within a space and set a custom title view.
This commit is contained in:
Doug
2025-09-03 17:48:49 +01:00
committed by GitHub
parent 927aea4bfe
commit 53eb1c1718
28 changed files with 170 additions and 44 deletions
@@ -12,6 +12,7 @@ class UserSessionScreenTests: XCTestCase {
let firstRoomName = "Foundation 🔭🪐🌌"
let firstSpaceName = "The Foundation"
let firstSubspaceName = "Company Space"
let firstSubspaceRoomName = "Management"
enum Step {
static let homeScreen = 1
@@ -21,6 +22,7 @@ class UserSessionScreenTests: XCTestCase {
static let spaceList = 5
static let spaceScreen = 6
static let subspaceScreen = 7
static let subspaceRoomScreen = 8
}
func testUserSessionFlows() async throws {
@@ -69,6 +71,8 @@ class UserSessionScreenTests: XCTestCase {
func testSpaceExploration() async throws {
let app = Application.launch(.userSessionSpacesFlow)
app.swipeDown() // Make sure the header shows a large title
try await app.assertScreenshot(step: Step.spacesTabBar)
// app.tabBars doesn't work on iPadOS 18 😐
@@ -85,5 +89,10 @@ class UserSessionScreenTests: XCTestCase {
XCTAssert(app.staticTexts[firstSubspaceName].waitForExistence(timeout: 5.0))
try await Task.sleep(for: .seconds(1))
try await app.assertScreenshot(step: Step.subspaceScreen)
app.buttons[A11yIdentifiers.spaceListScreen.spaceRoomName(firstSubspaceRoomName)].tap()
XCTAssert(app.staticTexts[firstSubspaceRoomName].waitForExistence(timeout: 5.0))
try await Task.sleep(for: .seconds(1))
try await app.assertScreenshot(step: Step.subspaceRoomScreen)
}
}
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:dee57958e736136e2598db20aae58486bf68d56352c68097319e3f4e2cea6dd9
size 452748
oid sha256:ccfe2cd51a3d032410862ded6a179f8cf4987f9c27ad7cdfaa4c0a2748c3b1f5
size 452759
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:63044eae82b5caf0e61eaa7e65f2fff30e2dca8fe282ce7c7fd2e4edd562811d
size 373691
oid sha256:22815607d190c5027b125360a511384eccbc8c997516e0a349d38b316d37502d
size 374015
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0d16db9f4d2cab604bc19a76585202586df21749d48da09c8e969c2624637ccf
size 277095
oid sha256:ef257a3d7f03a0eaee4e4354c847c90cbc9d0f9d5c52767d1d49d200232337b0
size 274101
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b71980e1f2646b261902d4ba50240ee92c99d7e6287a3392ccfbaaf074a20ace
size 477038
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8f3668e91005046ed8ee295d34c4f160a1501e427337c6bf96cdcdf34aa83c65
size 484663
oid sha256:01ef09ce91a3b76182fdf9ea27ac181d5a1584f5dac6b2826d7fc00cfdbbc86d
size 509366
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d966e5361b6c386668228ee436c1fbf4a2b53065169120aaca669ac485736c5f
size 402376
oid sha256:cd6229bda0aba7184a460f5156157f13a09d346688ea1cb3b252584919e6b3d5
size 293006
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:10c0b735d009691762e8719ff2dc3c01ce8e1c984e080caebe322336a6d378bd
size 117024
oid sha256:869be3a8f6ed1705de9fa6d37b6ce0a2e143a6f53a5b439f7cf67e93cf2d082f
size 109237
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0a62d21a23c9c6bdfeb73fbe24cff464aaf41d9b0252ec68130788ca660f2de9
size 324914