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

Commit

Permalink
Bug 1446492 - XCUITest that loads more than 1000 bookmarks (#3805)
Browse files Browse the repository at this point in the history
* Bug 1446492 - XCUITest that loads more than 1000 bookmarks
  • Loading branch information
isabelrios committed Apr 4, 2018
1 parent bd2a34f commit 826ea4e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion XCUITests/DatabaseFixtureTest.swift
Expand Up @@ -5,7 +5,7 @@
import XCTest

class DatabaseFixtureTest: BaseTestCase {
let fixtures = ["testOneBookmark": "testDatabaseFixture-browser.db", "testHistoryDatabaseFixture": "testHistoryDatabase4000-browser.db"]
let fixtures = ["testOneBookmark": "testDatabaseFixture-browser.db", "testBookmarksDatabaseFixture": "testBookmarksDatabase1000-browser.db", "testHistoryDatabaseFixture": "testHistoryDatabase4000-browser.db"]

override func setUp() {
// Test name looks like: "[Class testFunc]", parse out the function name
Expand All @@ -22,6 +22,17 @@ class DatabaseFixtureTest: BaseTestCase {
XCTAssertEqual(list, 1, "There should be an entry in the bookmarks list")
}

func testBookmarksDatabaseFixture() {
navigator.goto(HomePanel_Bookmarks)

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

let bookmarksList = app.tables["Bookmarks List"].cells.count
XCTAssertEqual(bookmarksList, 1013, "There should be an entry in the bookmarks list")
}

func testHistoryDatabaseFixture() {
navigator.goto(HomePanel_History)

Expand Down
Binary file not shown.

0 comments on commit 826ea4e

Please sign in to comment.