Skip to content

Commit a622c36

Browse files
committed
fix(test): add default sleep for DataItemInList
1 parent ce26de8 commit a622c36

File tree

1 file changed

+10
-0
lines changed
  • web/integration-test/src/test/java/org/apache/gravitino/integration/test/web/ui/pages

1 file changed

+10
-0
lines changed

web/integration-test/src/test/java/org/apache/gravitino/integration/test/web/ui/pages/CatalogsPage.java

+10
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,11 @@ public boolean verifyShowPropertiesItemInList(
704704
}
705705

706706
public boolean verifyShowDataItemInList(String itemName, Boolean isColumnLevel) {
707+
try {
708+
Thread.sleep(ACTION_SLEEP * 1000);
709+
} catch (Exception e) {
710+
LOG.error(e.getMessage(), e);
711+
}
707712
WebDriverWait wait = new WebDriverWait(driver, ACTION_SLEEP);
708713
String xpath =
709714
"//div[@data-refer='table-grid']"
@@ -729,6 +734,11 @@ public boolean verifyShowDataItemInList(String itemName, Boolean isColumnLevel)
729734
}
730735

731736
public boolean verifyNoDataItemInList(String itemName, Boolean isColumnLevel) {
737+
try {
738+
Thread.sleep(ACTION_SLEEP * 1000);
739+
} catch (Exception e) {
740+
LOG.error(e.getMessage(), e);
741+
}
732742
String xpath =
733743
"//div[@data-refer='table-grid']"
734744
+ "//div[contains(@class, 'MuiDataGrid-main')]"

0 commit comments

Comments
 (0)