diff --git a/UITests/Sources/RoomScreenUITests.swift b/UITests/Sources/RoomScreenUITests.swift index 5bf0ad5d4..d9f199978 100644 --- a/UITests/Sources/RoomScreenUITests.swift +++ b/UITests/Sources/RoomScreenUITests.swift @@ -132,7 +132,8 @@ class RoomScreenUITests: XCTestCase { 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) + // Should be the same as step 0 but it doesn't scroll to the same exact position, precision is around 0.95 + try await app.assertScreenshot(.roomLayoutHighlight, step: 1) } func testTimelineReadReceipts() async throws { diff --git a/UITests/Sources/__Snapshots__/Application/roomLayoutHighlight-1-iPhone-15-en-GB.UI.png b/UITests/Sources/__Snapshots__/Application/roomLayoutHighlight-1-iPhone-15-en-GB.UI.png new file mode 100644 index 000000000..cac2907ad --- /dev/null +++ b/UITests/Sources/__Snapshots__/Application/roomLayoutHighlight-1-iPhone-15-en-GB.UI.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9cf2b33540efccf9c5ad3a5d183bda468c4e79f760ecd3e99d4d7fb43eb49c2b +size 331768