Skip to content

Commit

Permalink
selenium tests
Browse files Browse the repository at this point in the history
  • Loading branch information
XingY committed Nov 14, 2024
1 parent 05c7c53 commit 1d19832
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/org/labkey/test/components/ui/entities/EntityInsertPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,10 @@ public ReactSelect getSourceSelect(String label)
return parentEntityTypeSelect(label);
}

public EntityInsertPanel clearParents()
private EntityInsertPanel clearParents(String typeText)
{
Locator loc = Locator.tagWithClass("span", "container--action-button")
.withChild(Locator.tagWithClass("i", "container--removal-icon")).withText("Remove Parent 1");
.withChild(Locator.tagWithClass("i", "container--removal-icon")).withText(typeText);

getWrapper().waitFor(()-> loc.findElementOrNull(getDriver()) != null, 1500); // it's okay if it isn't there

Expand All @@ -152,6 +152,16 @@ public EntityInsertPanel clearParents()
return this;
}

public EntityInsertPanel clearParents()
{
return clearParents("Remove Parent 1");
}

public EntityInsertPanel clearSources()
{
return clearParents("Remove Source Parent 1");
}

public EntityInsertPanel addRecords(List<Map<String, Object>> records)
{
showGrid();
Expand Down

0 comments on commit 1d19832

Please sign in to comment.