Skip to content

Commit

Permalink
fix-testQuickGlobalSearch (#1219)
Browse files Browse the repository at this point in the history
- fix openTaskTab
- use parent to identify the task tab since old selector can select
other hidden task tab
  • Loading branch information
tphvu-axonivy authored Nov 19, 2024
1 parent 40980e9 commit 9451da3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ protected String getLoadedLocator() {
}

public void openTaskTab() {
$("li[class*='task-tab-title']").shouldBe(appear, DEFAULT_TIMEOUT);
$("li[class*='task-tab-title']").click();
$("a[href='#search-results-tabview:task-tab']").shouldBe(appear, DEFAULT_TIMEOUT);
SelenideElement taskTab = $("a[href='#search-results-tabview:task-tab']").parent();
taskTab.shouldBe(appear, DEFAULT_TIMEOUT);
taskTab.shouldBe(appear, DEFAULT_TIMEOUT).click();
$("div[id='search-results-tabview:task-tab']").shouldBe(appear, DEFAULT_TIMEOUT);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1095,7 +1095,6 @@ public GlobalSearchResultPage inputQuickGlobalSearchKeyword(String keyword) {
searchInput.shouldBe(appear, DEFAULT_TIMEOUT).click();
searchInput.sendKeys(keyword);
searchInput.sendKeys(Keys.RETURN);
$("#search-results-tabview").shouldBe(appear, DEFAULT_TIMEOUT);
return new GlobalSearchResultPage();
}

Expand Down

0 comments on commit 9451da3

Please sign in to comment.