mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Removing dead code part 2 (#2235)
Co-authored-by: Doug <6060466+pixlwave@users.noreply.github.com>
This commit is contained in:
@@ -73,40 +73,6 @@ class RoomScreenUITests: XCTestCase {
|
||||
// The bottom of the timeline should remain visible with more items added above.
|
||||
try await app.assertScreenshot(.roomSmallTimelineLargePagination)
|
||||
}
|
||||
|
||||
func disabled_testTimelineLayoutInMiddle() async throws {
|
||||
let client = try UITestsSignalling.Client(mode: .tests)
|
||||
|
||||
let app = Application.launch(.roomLayoutMiddle)
|
||||
|
||||
await client.waitForApp()
|
||||
defer { try? client.stop() }
|
||||
|
||||
try await Task.sleep(for: .seconds(1)) // Allow the table to settle
|
||||
// Given a timeline that is neither at the top nor the bottom.
|
||||
app.swipeDown()
|
||||
try await Task.sleep(for: .seconds(1)) // Allow the table to settle
|
||||
try await app.assertScreenshot(.roomLayoutMiddle, step: 0) // Assert initial state for comparison.
|
||||
|
||||
// When a back pagination occurs.
|
||||
try await performOperation(.paginate, using: client)
|
||||
|
||||
// Then the UI should remain unchanged.
|
||||
try await app.assertScreenshot(.roomLayoutMiddle, step: 0)
|
||||
|
||||
// When an incoming message arrives
|
||||
try await performOperation(.incomingMessage, using: client)
|
||||
|
||||
// Then the UI should still remain unchanged.
|
||||
|
||||
try await app.assertScreenshot(.roomLayoutMiddle, step: 0)
|
||||
|
||||
// When the keyboard appears for the message composer.
|
||||
try await tapMessageComposer(in: app)
|
||||
|
||||
// Then the timeline scroll offset should remain unchanged.
|
||||
try await app.assertScreenshot(.roomLayoutMiddle, step: 1)
|
||||
}
|
||||
|
||||
func testTimelineLayoutAtTop() async throws {
|
||||
let client = try UITestsSignalling.Client(mode: .tests)
|
||||
|
||||
Reference in New Issue
Block a user