From d1dc44c062ace8dea29e6b7816debd0979d753fd Mon Sep 17 00:00:00 2001 From: Stefan Ceriu Date: Tue, 14 May 2024 16:02:50 +0300 Subject: [PATCH] Revert "Fix timeline item highlighting UI test" This reverts commit 721fa2b0213dea945a91500ae759d05587af1e5f. --- UITests/Sources/RoomScreenUITests.swift | 3 +-- .../Application/roomLayoutHighlight-0-iPhone-15-en-GB.UI.png | 4 ++-- .../Application/roomLayoutHighlight-1-iPhone-15-en-GB.UI.png | 3 --- 3 files changed, 3 insertions(+), 7 deletions(-) delete mode 100644 UITests/Sources/__Snapshots__/Application/roomLayoutHighlight-1-iPhone-15-en-GB.UI.png diff --git a/UITests/Sources/RoomScreenUITests.swift b/UITests/Sources/RoomScreenUITests.swift index d9f199978..5bf0ad5d4 100644 --- a/UITests/Sources/RoomScreenUITests.swift +++ b/UITests/Sources/RoomScreenUITests.swift @@ -132,8 +132,7 @@ 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. - // 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) + try await app.assertScreenshot(.roomLayoutHighlight, step: 0) } func testTimelineReadReceipts() async throws { diff --git a/UITests/Sources/__Snapshots__/Application/roomLayoutHighlight-0-iPhone-15-en-GB.UI.png b/UITests/Sources/__Snapshots__/Application/roomLayoutHighlight-0-iPhone-15-en-GB.UI.png index e90f1e586..cac2907ad 100644 --- a/UITests/Sources/__Snapshots__/Application/roomLayoutHighlight-0-iPhone-15-en-GB.UI.png +++ b/UITests/Sources/__Snapshots__/Application/roomLayoutHighlight-0-iPhone-15-en-GB.UI.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:1143957bde8bb8ff04948e2c3bbb3be3d22b8e65bfc6d9eeb550a498537b509a -size 331822 +oid sha256:9cf2b33540efccf9c5ad3a5d183bda468c4e79f760ecd3e99d4d7fb43eb49c2b +size 331768 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 deleted file mode 100644 index cac2907ad..000000000 --- a/UITests/Sources/__Snapshots__/Application/roomLayoutHighlight-1-iPhone-15-en-GB.UI.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9cf2b33540efccf9c5ad3a5d183bda468c4e79f760ecd3e99d4d7fb43eb49c2b -size 331768