Skip to content

Commit fcd3459

Browse files
Merge pull request #19750 from wordpress-mobile/fix/flaky-tests
Fixes a couple of flaky unit and UI tests
2 parents be75d66 + a7fa7d6 commit fcd3459

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

WordPress/UITestsFoundation/Screens/Editor/BlockEditorScreen.swift

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

4344
titleView.tap()
4445
titleView.typeText(text)

WordPress/WordPressTest/MediaURLExporterTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class MediaURLExporterTests: XCTestCase {
5959
XCTFail("Error: an error occurred testing a URL export: \(error.toNSError())")
6060
expect.fulfill()
6161
}
62-
waitForExpectations(timeout: 2.0, handler: nil)
62+
waitForExpectations(timeout: 3.0, handler: nil)
6363
}
6464

6565
func testThatURLExportingGIFWorks() {

0 commit comments

Comments
 (0)