Skip to content

Commit

Permalink
Issue 52092: LKSM: Cross folder detail editing UI is not respecting s…
Browse files Browse the repository at this point in the history
…ample or source's actual container's settings for allowing name update
  • Loading branch information
XingY committed Feb 13, 2025
1 parent 5c0664c commit da6112c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/org/labkey/test/components/ui/grids/DetailTableEdit.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit da6112c

Please sign in to comment.