Skip to content

Commit d6166b6

Browse files
Fix: editor adding blocks UI tests
1 parent 92b2de3 commit d6166b6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

WordPress/UITestsFoundation/Screens/Editor/BlockEditorScreen.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ public class BlockEditorScreen: ScreenObject {
3939
*/
4040
public func enterTextInTitle(text: String) -> BlockEditorScreen {
4141
let titleView = app.otherElements["Post title. Empty"].firstMatch // Uses a localized string
42+
guard titleView.waitForExistence(timeout: 3) else {
43+
return self
44+
}
4245

4346
titleView.tap()
4447
titleView.typeText(text)

0 commit comments

Comments
 (0)