Skip to content

Commit c315267

Browse files
Update DetailTableEdit.clickCancel (#2572)
1 parent ff86578 commit c315267

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

src/org/labkey/test/components/ui/grids/DetailTableEdit.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -543,6 +543,7 @@ public DetailDataPanel clickCancel()
543543
{
544544
String title = getSourceTitle();
545545
elementCache().cancelButton.click();
546+
getWrapper().shortWait().until(ExpectedConditions.stalenessOf(elementCache().cancelButton));
546547
return new DetailDataPanel.DetailDataPanelFinder(getDriver()).withTitle(title).waitFor();
547548
}
548549

src/org/labkey/test/components/ui/notifications/ServerNotificationMenu.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,9 @@ public void clickMarkAll()
158158
public ImportsPage clickViewAll()
159159
{
160160
expand();
161-
WebDriverWrapper.waitFor(elementCache().viewAllLink::isDisplayed,
161+
WebDriverWrapper.waitFor(elementCache().viewAllLink()::isDisplayed,
162162
"View all link did not become visible.", 2_500);
163-
elementCache().viewAllLink.click();
163+
elementCache().viewAllLink().click();
164164
return new ImportsPage(getWrapper());
165165
}
166166

@@ -278,7 +278,10 @@ public final WebElement markAll()
278278
.refindWhenNeeded(elementCache().menuContent);
279279
}
280280

281-
public final WebElement viewAllLink = Locator.linkContainingText("View all activity").refindWhenNeeded(this);
281+
public final WebElement viewAllLink()
282+
{
283+
return Locator.linkContainingText("View all activity").refindWhenNeeded(this);
284+
}
282285

283286
}
284287

0 commit comments

Comments
 (0)