Skip to content

Commit

Permalink
upd searchItem
Browse files Browse the repository at this point in the history
  • Loading branch information
VladSenyuta committed Apr 11, 2024
1 parent 2a676f0 commit 3b5c807
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions e2e-tests/src/main/java/io/kafbat/ui/screens/BasePage.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,14 @@ protected void waitUntilSpinnerDisappear(int... timeoutInSeconds) {
}
}

protected void clickClearSearchFieldButton() {
clickByActions(searchFld.$x("./../span[@role='button']"));
waitUntilSpinnerDisappear(1);
}

protected void searchItem(String tag) {
log.debug("\nsearchItem: {}", tag);
clickClearSearchFieldButton();
sendKeysAfterClear(searchFld, tag);
searchFld.pressEnter().shouldHave(Condition.value(tag));
waitUntilSpinnerDisappear(1);
Expand Down

0 comments on commit 3b5c807

Please sign in to comment.