Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Commit

Permalink
possible fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Velin92 committed Jul 15, 2024
1 parent 3fc7e64 commit 8f2a68b
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,17 +161,16 @@ extension WysiwygUITests {

if changeKeyboardButton == nil {
addKeyboardToSettings(keyboard: keyboard)
changeKeyboardButton = app.buttons["Next keyboard"]
return
}

changeKeyboardButton.press(forDuration: 1)
var keyboardSelection = app.tables.staticTexts[keyboard.label]
let keyboardSelection = app.tables.staticTexts[keyboard.label]
if !keyboardSelection.exists {
addKeyboardToSettings(keyboard: keyboard)
// No need to tap since it gets selected automatically
} else {
keyboardSelection.tap()
return
}
keyboardSelection.tap()
}

private func addKeyboardToSettings(keyboard: TestKeyboard) {
Expand All @@ -190,9 +189,12 @@ extension WysiwygUITests {
settingsApp.tables.cells.staticTexts[keyboard.keyboardIdentifier].tap()
}
settingsApp.buttons["Done"].tap()
sleep(10)
sleep(1)
settingsApp.terminate()

app.launch()
textView.tap()
setupKeyboard(keyboard)
}
}

Expand Down

0 comments on commit 8f2a68b

Please sign in to comment.