Skip to content

Commit dc2e80b

Browse files
committed
Improve test timing
1 parent 32867f1 commit dc2e80b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

LDK/test/src/org/labkey/test/tests/external/labModules/LabModulesTest.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1308,6 +1308,9 @@ private void dnaOligosTableTest() throws Exception
13081308
setFormElement(Locator.name("oligo_type"), "Type1");
13091309
sleep(150); //there's a buffer when committing changes
13101310
clickButton("Submit", 0);
1311+
new Window.WindowFinder(getDriver()).withTitle("Success").waitFor();
1312+
assertTextPresent("Your upload was successful!");
1313+
clickButton("OK");
13111314
_oligosTotal += 1;
13121315
verifyOligoCount(_oligosTotal);
13131316

@@ -1322,12 +1325,12 @@ private void dnaOligosTableTest() throws Exception
13221325
String sequence = "tggGg gGAAAAgg";
13231326
setFormElementJS(Locator.name("text"), "Name\tSequence\nTestPrimer1\tatg\nTestPrimer2\t" + sequence);
13241327
clickButton("Upload", 0);
1325-
_oligosTotal += 2;
1326-
verifyOligoCount(_oligosTotal);
13271328

13281329
new Window.WindowFinder(getDriver()).withTitle("Success").waitFor();
13291330
assertTextPresent("Success! 2 rows inserted.");
13301331
clickButton("OK");
1332+
_oligosTotal += 2;
1333+
verifyOligoCount(_oligosTotal);
13311334

13321335
//verify row imported
13331336
_helper.goToLabHome();

0 commit comments

Comments
 (0)