Skip to content

Commit 3efea73

Browse files
committed
Bug 1456188 - XCUITest Fix History Tests (#3852)
1 parent 7d9bb68 commit 3efea73

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

XCUITests/HistoryTests.swift

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ class HistoryTests: BaseTestCase {
3838
func testClearHistoryFromSettings() {
3939
// Browse to have an item in history list
4040
navigator.openURL(webpage["url"]!)
41+
waitUntilPageLoad()
42+
navigator.goto(BrowserTabMenu)
4143
navigator.goto(HomePanel_History)
4244
waitforExistence(app.tables.cells["HistoryPanel.recentlyClosedCell"])
4345
XCTAssertTrue(app.tables.cells.staticTexts[webpage["label"]!].exists)
@@ -165,13 +167,15 @@ class HistoryTests: BaseTestCase {
165167

166168
navigator.performAction(Action.OpenNewTabFromTabTray)
167169
navigator.nowAt(HomePanelsScreen)
168-
navigator.goto(HistoryRecentlyClosed)
170+
navigator.goto(HomePanel_History)
171+
XCTAssertFalse(app.cells.staticTexts["Recently Closed"].isSelected)
169172
waitforNoExistence(app.tables["Recently Closed Tabs List"])
170173

171174
// Now verify that on regular mode the recently closed list is empty too
172175
navigator.toggleOff(userState.isPrivate, withAction: Action.TogglePrivateMode)
173176
navigator.goto(HomePanelsScreen)
174-
navigator.goto(HistoryRecentlyClosed)
177+
navigator.goto(HomePanel_History)
178+
XCTAssertFalse(app.cells.staticTexts["Recently Closed"].isSelected)
175179
waitforNoExistence(app.tables["Recently Closed Tabs List"])
176180
}
177181
}

0 commit comments

Comments
 (0)