Skip to content

Commit

Permalink
fix for remove transform script helper to waitFor
Browse files Browse the repository at this point in the history
  • Loading branch information
cnathe committed Nov 22, 2023
1 parent 0305b00 commit ad1bcf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/labkey/test/pages/ReactAssayDesignerPage.java
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,8 @@ private ReactAssayDesignerPage setTransformScript(File transformScript, boolean

public ReactAssayDesignerPage removeTransformScript(String fileName)
{
AttachmentCard card = new AttachmentCard.FileAttachmentCardFinder(getDriver()).withFile(fileName).waitFor(this);
int beforeCount = Locator.tagWithClass("div", "attachment-card__description").findElements(this).size();
AttachmentCard card = new AttachmentCard.FileAttachmentCardFinder(getDriver()).withFile(fileName).find(this);
card.clickRemove();
int afterCount = Locator.tagWithClass("div", "attachment-card__description").findElements(this).size();
assertEquals("Transform script count not as expected after remove.", beforeCount - 1, afterCount);
Expand Down

0 comments on commit ad1bcf9

Please sign in to comment.