From 185b4f8897d74561d907746ae868ece9ec296d5b Mon Sep 17 00:00:00 2001 From: labkey-nicka Date: Wed, 2 Jul 2025 14:48:09 -0700 Subject: [PATCH] Add EntityBulkUpdateDialog.getSelectionFieldHelpBlockText() --- .../components/ui/entities/EntityBulkUpdateDialog.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/org/labkey/test/components/ui/entities/EntityBulkUpdateDialog.java b/src/org/labkey/test/components/ui/entities/EntityBulkUpdateDialog.java index a5300dca78..066410a787 100644 --- a/src/org/labkey/test/components/ui/entities/EntityBulkUpdateDialog.java +++ b/src/org/labkey/test/components/ui/entities/EntityBulkUpdateDialog.java @@ -1,6 +1,7 @@ package org.labkey.test.components.ui.entities; import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; import org.labkey.remoteapi.CommandException; import org.labkey.test.BootstrapLocators; import org.labkey.test.Locator; @@ -132,6 +133,15 @@ public EntityBulkUpdateDialog setSelectionField(CharSequence fieldIdentifier, St return setSelectionField(fieldIdentifier, List.of(selectValue)); } + /** + * @param fieldIdentifier Identifier for the field; name ({@link String}) or fieldKey ({@link FieldKey}) + * @return text displayed in the help block, if any, for the selection field + */ + public @Nullable String getSelectionFieldHelpBlockText(CharSequence fieldIdentifier) + { + return elementCache().getSelect(fieldIdentifier).getHelpBlockText(); + } + /** * @param fieldIdentifier Identifier for the field; name ({@link String}) or fieldKey ({@link FieldKey}) * @return available options for the specified field