Skip to content

Commit 575d068

Browse files
[CI] Fix E2E test on iOS 15 (#743)
1 parent ab4e6c0 commit 575d068

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

SwiftUIDemoAppUITests/Robots/UserRobot.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,12 @@ extension UserRobot {
170170

171171
@discardableResult
172172
func endCall() -> Self {
173-
CallPage.hangUpButton.firstMatch.safeTap()
173+
let hangUpButton = CallPage.hangUpButton
174+
if ProcessInfo().operatingSystemVersion.majorVersion > 15 {
175+
hangUpButton.firstMatch.safeTap()
176+
} else {
177+
hangUpButton.safeTap()
178+
}
174179
return self
175180
}
176181

0 commit comments

Comments
 (0)