Skip to content

Commit b39bef5

Browse files
committed
EntityBulkUpdateDialog getFieldNames() to account for the hide-label elements
1 parent 830bb41 commit b39bef5

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/org/labkey/test/components/ui/entities/EntityBulkUpdateDialog.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,11 @@ public List<String> getFieldNames()
328328
List<WebElement> labels = Locator.tagWithClass("label", "control-label").withAttribute("for")
329329
.waitForElements(elementCache(), 2_000);
330330

331+
// Amount and Units is an example that has a "hide-label" for StoredAmount
332+
List<WebElement> hiddenLabels = Locator.tagWithClass("label", "hide-label").withAttribute("for")
333+
.findElements(elementCache());
334+
labels.addAll(hiddenLabels);
335+
331336
return labels.stream().map(a -> FieldKey.fromFieldKey(a.getDomAttribute("for")).getFullName()).toList();
332337
}
333338

0 commit comments

Comments
 (0)