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:
Doug
2024-04-29 17:32:16 +01:00
committed by GitHub
parent aaa8af2996
commit 7c94ed98a5
18 changed files with 111 additions and 52 deletions
+10 -4
View File
@@ -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 {