Skip to content

Commit 4931ab5

Browse files
[CI] Fix failing test (#645)
1 parent 47ffdca commit 4931ab5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

StreamChatSwiftUITestsAppTests/Robots/UserRobot+Asserts.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -663,8 +663,8 @@ extension UserRobot {
663663

664664
if ProcessInfo().operatingSystemVersion.majorVersion > 14 {
665665
// There is no image preview element details in the hierarchy tree on iOS < 15
666-
let previewImage = attributes.LinkPreview.image(in: messageCell)
667-
XCTAssertTrue(previewImage.isHittable, "Preview image is not clickable")
666+
let link = attributes.LinkPreview.link(in: messageCell)
667+
XCTAssertTrue(link.isHittable, "Preview image is not clickable")
668668
}
669669
XCTAssertTrue(previewTitle.isHittable, "Preview title is not clickable")
670670
XCTAssertTrue(previewDescription.isHittable, "Preview description is not clickable")

0 commit comments

Comments
 (0)