Skip to content

Commit 9aa06e1

Browse files
Be a little more patient for the store to load (#115)
1 parent b39df7b commit 9aa06e1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

genotyping/test/src/org/labkey/test/tests/IlluminaTest.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,10 +349,14 @@ private void verifyIlluminaSampleSheet()
349349
Ext4FieldRef.getForLabel(this, a[0]).setValue(a[1]);
350350
}
351351
Ext4FieldRef combo = Ext4FieldRef.getForLabel(this, "Template");
352+
353+
waitFor(() ->
354+
3 == ((Long)combo.getEval("store.getCount()")).intValue(),
355+
"Combo store does not have correct record number. Should be 3, but was " + ((Long)combo.getEval("store.getCount()")).intValue(),
356+
WAIT_FOR_JAVASCRIPT);
357+
352358
combo.setValue(TEMPLATE_NAME);
353359

354-
int count = ((Long)combo.getEval("store.getCount()")).intValue();
355-
assertEquals("Combo store does not have correct record number", 3, count);
356360
sleep(50);
357361
assertEquals("Field value not set correctly", TEMPLATE_NAME, Ext4FieldRef.getForLabel(this, "Template").getValue());
358362
_ext4Helper.clickTabContainingText("Preview Header");

0 commit comments

Comments
 (0)