Skip to content
Snippets Groups Projects
Commit 441d0a73 authored by Simon Urli's avatar Simon Urli Committed by Manuel Leduc
Browse files

XWIKI-18844: NotificationsSettingsIT.addCustomFilters is flickering

  * Ensure to wait for the LT to be ready before counting the elements
parent 25aa4e4b
No related branches found
No related tags found
No related merge requests found
......@@ -259,6 +259,7 @@ public void waitUntilRowCountGreaterThan(int minimalExpectedRowCount)
getDriver().waitUntilCondition(driver -> {
// Refresh the current page since we need the livetable to fetch the JSON again
driver.navigate().refresh();
this.waitUntilReady();
int count = driver.findElements(by).size();
LOGGER.info("LiveTableElement#waitUntilRowCountGreaterThan/refresh(): count = [{}]", count);
return count >= minimalExpectedRowCount;
......@@ -268,6 +269,7 @@ public void waitUntilRowCountGreaterThan(int minimalExpectedRowCount)
getDriver().waitUntilCondition(driver -> {
// Refresh the current page since we need the livetable to fetch the JSON again
driver.get(driver.getCurrentUrl());
this.waitUntilReady();
int count = driver.findElements(by).size();
LOGGER.info("LiveTableElement#waitUntilRowCountGreaterThan/get(): count = [{}]", count);
return count >= minimalExpectedRowCount;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment