mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:02:10 +00:00
Fix UI tests (#5862)
* Fix UI tests compilation error. * Update UI Snapshots.
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user