@InBrowser(emulator = Emulator.GOOGLE_NEXUS_5) @Test(groups = "mercury_search_noSuggestionsOnSearchResultsPage") public void mercury_search_noSuggestionsOnSearchResultsPage() { SearchResultsPage searchResults = new SearchResultsPage().openForQuery(SEARCH_PHRASE_NO_RESULTS); Assertion.assertFalse(searchResults.getSearch().areSearchSuggestionsDisplayed()); }
@InBrowser(emulator = Emulator.GOOGLE_NEXUS_5) @Test(groups = "mercury_search_focusOnTryAnotherSearchWhenNoResults") public void mercury_search_focusOnTryAnotherSearchWhenNoResults() { SearchResultsPage searchResults = new SearchResultsPage().openForQuery(SEARCH_PHRASE_NO_RESULTS).clickTryAnotherSearch(); Assertion.assertTrue(searchResults.getSearch().isInputFieldFocused()); Assertion.assertTrue(searchResults.getSearch().getSearchPhrase().isEmpty()); }
@InBrowser(emulator = Emulator.GOOGLE_NEXUS_5) @Test(groups = "mercury_search_searchInputDoesNotCoverNavigation") public void mercury_search_searchInputDoesNotCoverNavigation() { SearchResultsPage resultsPage = new SearchResultsPage().openForQuery(SEARCH_PHRASE); resultsPage.getTopBar().openNavigation(); Assertion.assertFalse(resultsPage.getSearch().isSearchInputFieldEditable()); }