mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
Permalink Tweaks 2 (#2766)
* Missing changelog. * Parse bare room aliases as permalinks. Update the SDK. * Fix tapping the same permalink twice. Add a test. Don't clear the focussed item when reaching the bottom of the timeline. * Make sure sending a message returns to live.
This commit is contained in:
@@ -118,15 +118,21 @@ class RoomScreenUITests: XCTestCase {
|
||||
await client.waitForApp()
|
||||
defer { try? client.stop() }
|
||||
|
||||
// Some time for the timeline to settle.
|
||||
try await Task.sleep(for: .seconds(1))
|
||||
// When tapping a permalink to an item in the timeline.
|
||||
try await performOperation(.focusOnEvent("$5"), using: client)
|
||||
// Some time for the timeline to settle.
|
||||
try await Task.sleep(for: .seconds(1))
|
||||
|
||||
// Then the item should become highlighted.
|
||||
try await app.assertScreenshot(.roomLayoutHighlight, step: 0)
|
||||
|
||||
guard UIDevice.current.userInterfaceIdiom == .phone else { return }
|
||||
|
||||
// When scrolling to the bottom and tapping the same permalink again.
|
||||
app.buttons[A11yIdentifiers.roomScreen.scrollToBottom].tap()
|
||||
try await Task.sleep(for: .seconds(1)) // Some time for the timeline to settle
|
||||
try await performOperation(.focusOnEvent("$5"), using: client)
|
||||
|
||||
// Then the item should also be highlighted and scrolled to in the same state as before.
|
||||
try await app.assertScreenshot(.roomLayoutHighlight, step: 0)
|
||||
}
|
||||
|
||||
func testTimelineReadReceipts() async throws {
|
||||
|
||||
Reference in New Issue
Block a user