Skip to content

Commit 5e68347

Browse files
authored
Add waiting for isChecked for DataViewsTest (#2894)
#### Rationale Fix for test DataViewsTest.testSteps add waiting for isChecked
1 parent 5d07531 commit 5e68347

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/org/labkey/test/tests/DataViewsTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,9 @@ public void sortDataViewsTest()
471471

472472
// check if top category sorts Alphabetical
473473
openCustomizePanel(ORIGINAL_WEBPART_TITLE);
474-
RadioButton().withLabel("Alphabetical").find(getDriver()).check();
474+
var alphabeticalRadio = RadioButton().withLabel("Alphabetical").find(getDriver());
475+
alphabeticalRadio.check();
476+
waitFor(alphabeticalRadio::isChecked, "Radio button 'Alphabetical' did not become checked after clicking.", 2000);
475477
clickButton("Save", 0);
476478
_ext4Helper.waitForMaskToDisappear();
477479
assertTextPresentInThisOrder(CATEGORIES[0], "Abbreviated Demographics", "Alt ID mapping", "APX-1: Abbreviated Physical Exam",

0 commit comments

Comments
 (0)