File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments