Skip to content

Commit

Permalink
fix intermittently failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
labkey-chrisj committed Apr 9, 2024
1 parent d5635a1 commit 23241c3
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/org/labkey/test/pages/assay/ChooseAssayTypePage.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import org.labkey.test.components.ui.files.FileUploadPanel;
import org.labkey.test.pages.LabKeyPage;
import org.labkey.test.pages.ReactAssayDesignerPage;
import org.openqa.selenium.NoSuchElementException;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.ui.ExpectedConditions;
Expand Down Expand Up @@ -34,7 +35,16 @@ public static ChooseAssayTypePage beginAt(WebDriverWrapper webDriverWrapper, Str
@Override
protected void waitForPage()
{
waitFor(() -> elementCache().assayTypeTabs.getTabText().size() > 1, WAIT_FOR_PAGE);
waitFor(() -> {
try
{
return elementCache().assayTypeTabs.getTabText().size() > 1;
}
catch (NoSuchElementException retry)
{
return false;
}
}, WAIT_FOR_PAGE);
}


Expand Down

0 comments on commit 23241c3

Please sign in to comment.