Skip to content

Commit

Permalink
Bug 1476543 - XCUITest Fix Intermittent failure DatabaseFixture·
Browse files Browse the repository at this point in the history
  • Loading branch information
isabelrios committed Jul 18, 2018
1 parent bbe3b23 commit c396084
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions XCUITests/DatabaseFixtureTest.swift
Expand Up @@ -27,7 +27,7 @@ class DatabaseFixtureTest: BaseTestCase {

let loaded = NSPredicate(format: "count == 1013")
expectation(for: loaded, evaluatedWith: app.tables["Bookmarks List"].cells, handler: nil)
waitForExpectations(timeout: 10, handler: nil)
waitForExpectations(timeout: 15, handler: nil)

let bookmarksList = app.tables["Bookmarks List"].cells.count
XCTAssertEqual(bookmarksList, 1013, "There should be an entry in the bookmarks list")
Expand All @@ -40,6 +40,6 @@ class DatabaseFixtureTest: BaseTestCase {
// the actual max number is 100
let loaded = NSPredicate(format: "count == 102")
expectation(for: loaded, evaluatedWith: app.tables["History List"].cells, handler: nil)
waitForExpectations(timeout: 5, handler: nil)
waitForExpectations(timeout: 15, handler: nil)
}
}

0 comments on commit c396084

Please sign in to comment.