From da6112c190d98fd46aefb08401569cdf5f2d4bba Mon Sep 17 00:00:00 2001 From: XingY Date: Wed, 12 Feb 2025 21:50:07 -0800 Subject: [PATCH] Issue 52092: LKSM: Cross folder detail editing UI is not respecting sample or source's actual container's settings for allowing name update --- .../labkey/test/components/ui/grids/DetailTableEdit.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/org/labkey/test/components/ui/grids/DetailTableEdit.java b/src/org/labkey/test/components/ui/grids/DetailTableEdit.java index 4219c2d455..a8eeb133be 100644 --- a/src/org/labkey/test/components/ui/grids/DetailTableEdit.java +++ b/src/org/labkey/test/components/ui/grids/DetailTableEdit.java @@ -67,6 +67,10 @@ public DetailTableEdit setReadyTimeout(int readyTimeout) return this; } + public boolean isFieldPresent(String fieldCaption) + { + return elementCache().fieldValue(fieldCaption) != null; + } /** * Check to see if a field is editable. Could be state dependent, that is it returns false if the field is * loading but if checked later could return true. @@ -515,7 +519,7 @@ public ElementCache() public WebElement fieldValue(String caption) { - return Locator.tagWithAttribute("td", "data-caption", caption).findElement(editPanel); + return Locator.tagWithAttribute("td", "data-caption", caption).findElementOrNull(editPanel); } public FileUploadField fileField(String caption)