Disable timeline in the middle test again. (#1475)

* Fix RoomDetailsScreen tests too.
This commit is contained in:
Doug
2023-08-11 09:53:43 +01:00
committed by GitHub
parent 8512d4c857
commit 27c3cdce62
2 changed files with 4 additions and 5 deletions
@@ -30,7 +30,7 @@ class RoomDetailsScreenUITests: XCTestCase {
func testInitialStateComponentsWithRoomAvatar() async throws { func testInitialStateComponentsWithRoomAvatar() async throws {
let app = Application.launch(.roomDetailsScreenWithRoomAvatar) let app = Application.launch(.roomDetailsScreenWithRoomAvatar)
XCTAssert(app.images[A11yIdentifiers.roomDetailsScreen.avatar].waitForExistence(timeout: 1)) XCTAssert(app.buttons[A11yIdentifiers.roomDetailsScreen.avatar].waitForExistence(timeout: 1))
XCTAssert(app.buttons[A11yIdentifiers.roomDetailsScreen.people].waitForExistence(timeout: 1)) XCTAssert(app.buttons[A11yIdentifiers.roomDetailsScreen.people].waitForExistence(timeout: 1))
try await app.assertScreenshot(.roomDetailsScreenWithRoomAvatar) try await app.assertScreenshot(.roomDetailsScreenWithRoomAvatar)
} }
@@ -52,7 +52,7 @@ class RoomDetailsScreenUITests: XCTestCase {
func testInitialStateComponentsDmDetails() async throws { func testInitialStateComponentsDmDetails() async throws {
let app = Application.launch(.roomDetailsScreenDmDetails) let app = Application.launch(.roomDetailsScreenDmDetails)
XCTAssert(app.images[A11yIdentifiers.roomDetailsScreen.dmAvatar].waitForExistence(timeout: 1)) XCTAssert(app.buttons[A11yIdentifiers.roomDetailsScreen.dmAvatar].waitForExistence(timeout: 1))
XCTAssertFalse(app.buttons[A11yIdentifiers.roomDetailsScreen.people].exists) XCTAssertFalse(app.buttons[A11yIdentifiers.roomDetailsScreen.people].exists)
try await app.assertScreenshot(.roomDetailsScreenDmDetails) try await app.assertScreenshot(.roomDetailsScreenDmDetails)
} }
+2 -3
View File
@@ -75,7 +75,7 @@ class RoomScreenUITests: XCTestCase {
try await app.assertScreenshot(.roomSmallTimelineLargePagination) try await app.assertScreenshot(.roomSmallTimelineLargePagination)
} }
func testTimelineLayoutInMiddle() async throws { func disabled_testTimelineLayoutInMiddle() async throws {
let client = try UITestsSignalling.Client(mode: .tests) let client = try UITestsSignalling.Client(mode: .tests)
let app = Application.launch(.roomLayoutMiddle) let app = Application.launch(.roomLayoutMiddle)
@@ -100,8 +100,7 @@ class RoomScreenUITests: XCTestCase {
// Then the UI should still remain unchanged. // Then the UI should still remain unchanged.
// FIXME: the timeline scrolls a bit on new incoming messages try await app.assertScreenshot(.roomLayoutMiddle, step: 0)
// try await app.assertScreenshot(.roomLayoutMiddle, step: 0)
// When the keyboard appears for the message composer. // When the keyboard appears for the message composer.
try await tapMessageComposer(in: app) try await tapMessageComposer(in: app)