Skip to content

Commit

Permalink
[#6459][Followup] fix(test): add default sleep for DataItemInList (#6567
Browse files Browse the repository at this point in the history
)

### What changes were proposed in this pull request?
Fix ci issue by default sleep

### Why are the changes needed?
Need a sleep time for render latest data
Only verifyShowDataItemInList and verifyNoDataItemInList

Fix: #6459 

### Does this PR introduce _any_ user-facing change?
N/A

### How was this patch tested?
repeat run ci test case
  • Loading branch information
LauraXia123 authored Feb 28, 2025
1 parent 2135cd7 commit bde2fc8
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 bde2fc8

Please sign in to comment.