Skip to content

Commit

Permalink
Increased max timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
wakaleo committed Oct 15, 2023
1 parent bbdd11d commit 4876d80
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/test/java/starter/actions/SearchSteps.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import org.openqa.selenium.support.ui.ExpectedConditions;
import starter.pageobjects.SearchForm;

import java.time.Duration;
import java.util.List;

import static org.openqa.selenium.support.ui.ExpectedConditions.presenceOfElementLocated;
Expand All @@ -16,8 +17,8 @@ public class SearchSteps extends UIInteractionSteps {
public void searchForTerm(String searchTerm) {
find(SearchForm.SEARCH_FIELD).sendKeys(searchTerm);
find(SearchForm.SEARCH_BUTTON).click();
waitFor(presenceOfElementLocated(SearchForm.ARTICLE_HEADINGS));
}
withTimeoutOf(Duration.ofSeconds(10))
.waitFor(presenceOfElementLocated(SearchForm.ARTICLE_HEADINGS)); }

@Step("Check the search results")
public List<String> getSearchResults() {
Expand Down

0 comments on commit 4876d80

Please sign in to comment.