Skip to content

Commit

Permalink
Fixes HistoryTestIT unit test.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdrodjpl committed Feb 6, 2025
1 parent 2dbd858 commit b925d74
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,14 @@ public void runResultsTest() throws IOException {
waitForElementID("processes-table");

log.info("Verifying the header and output from the model.");
// Get fresh reference to history button
WebElement historyButton = findElByXPath("//button[contains(text(),'History')]");
waitForElement(historyButton);
// Refresh element before scrolling
historyButton = findElByXPath("//button[contains(text(),'History')]");
scrollTo(historyButton);
// Refresh element before clicking
historyButton = findElByXPath("//button[contains(text(),'History')]");
historyButton.click();

findOnPage("History");
Expand Down

0 comments on commit b925d74

Please sign in to comment.