From 44f9ebcacc2c372e4abbd523fa8ac932b6b474d6 Mon Sep 17 00:00:00 2001 From: labkey-matthewb Date: Fri, 4 Aug 2023 14:45:07 -0700 Subject: [PATCH] wait=true when clicking no "create new requests" seems to fix SpecimentTest --- src/org/labkey/test/tests/SpecimenTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/org/labkey/test/tests/SpecimenTest.java b/src/org/labkey/test/tests/SpecimenTest.java index 6261fba81f..36021c26e1 100644 --- a/src/org/labkey/test/tests/SpecimenTest.java +++ b/src/org/labkey/test/tests/SpecimenTest.java @@ -336,7 +336,7 @@ private void createRequest() assertTextPresent("Vial History"); goBack(); - BootstrapMenu.find(getDriver(), "Request Options").clickSubMenu(false, "Create New Request"); + BootstrapMenu.find(getDriver(), "Request Options").clickSubMenu(true, "Create New Request"); selectOptionByText(Locator.name("destinationLocation"), DESTINATION_SITE); setFormElement(Locator.id("input0"), "Assay Plan"); setFormElement(Locator.id("input2"), "Comments"); @@ -592,7 +592,7 @@ private void verifyRequestCancel() clickAndWait(Locator.linkWithText("Swab")); new DataRegionTable.DataRegionFinder(getDriver()).find() .checkAllOnPage(); - BootstrapMenu.find(getDriver(), "Request Options").clickSubMenu(false, "Create New Request"); + BootstrapMenu.find(getDriver(), "Request Options").clickSubMenu(true, "Create New Request"); clickButton("Cancel"); } @@ -664,7 +664,7 @@ private void verifySpecimenTableAttachments() goToSpecimenData(); clickAndWait(Locator.linkWithText("Urine")); new DataRegionTable("SpecimenDetail", getDriver()).checkCheckbox(0); - BootstrapMenu.find(getDriver(), "Request Options").clickSubMenu(false, "Create New Request"); + BootstrapMenu.find(getDriver(), "Request Options").clickSubMenu(true, "Create New Request"); selectOptionByText(Locator.name("destinationLocation"), DESTINATION_SITE); setFormElement(Locator.id("input0"), "Assay Plan"); setFormElement(Locator.id("input1"), "Shipping"); @@ -701,7 +701,7 @@ private void verifySpecimenTableAttachments() goToSpecimenData(); clickAndWait(Locator.linkWithText("Urine")); new DataRegionTable("SpecimenDetail", getDriver()).checkCheckbox(1); - BootstrapMenu.find(getDriver(), "Request Options").clickSubMenu(false, "Create New Request"); + BootstrapMenu.find(getDriver(), "Request Options").clickSubMenu(true, "Create New Request"); selectOptionByText(Locator.name("destinationLocation"), DESTINATION_SITE); setFormElement(Locator.id("input0"), "Assay Plan"); setFormElement(Locator.id("input1"), "Shipping");