Fix UI tests (#5862)

* Fix UI tests compilation error.

* Update UI Snapshots.
This commit is contained in:
Doug
2026-07-10 18:12:05 +01:00
committed by GitHub
parent 6635113f0b
commit 80ad39e877
22 changed files with 42 additions and 42 deletions
@@ -40,7 +40,7 @@ extension XCUIApplication {
/// app instance anyway, and some of our tests assert that a default focus has been set on the text field,
/// so having a method that would set the focus and show the keyboard isn't always desirable.
func showKeyboardIfNeeded() {
if UIDevice.current.userInterfaceIdiom == .pad, keyboards.isEmpty {
if UIDevice.current.userInterfaceIdiom == .pad, keyboards.count == 0 {
buttons["Keyboard"].tap()
buttons["Show Keyboard"].tap()
}