Skip to content

Commit a7fa7d6

Browse files
Update WordPress/UITestsFoundation/Screens/Editor/BlockEditorScreen.swift
Co-authored-by: Jos <[email protected]>
1 parent d6166b6 commit a7fa7d6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

WordPress/UITestsFoundation/Screens/Editor/BlockEditorScreen.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@ 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-
}
42+
XCTAssert(titleView.waitForExistence(timeout: 3), "Title View does not exist!")
4543

4644
titleView.tap()
4745
titleView.typeText(text)

0 commit comments

Comments
 (0)