Skip to content

Commit

Permalink
fix(test): add default sleep for DataItemInList
Browse files Browse the repository at this point in the history
  • Loading branch information
LauraXia123 committed Feb 27, 2025
1 parent ce26de8 commit a622c36
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,11 @@ public boolean verifyShowPropertiesItemInList(
}

public boolean verifyShowDataItemInList(String itemName, Boolean isColumnLevel) {
try {
Thread.sleep(ACTION_SLEEP * 1000);
} catch (Exception e) {
LOG.error(e.getMessage(), e);
}
WebDriverWait wait = new WebDriverWait(driver, ACTION_SLEEP);
String xpath =
"//div[@data-refer='table-grid']"
Expand All @@ -729,6 +734,11 @@ public boolean verifyShowDataItemInList(String itemName, Boolean isColumnLevel)
}

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

0 comments on commit a622c36

Please sign in to comment.