diff --git a/AxonIvyPortal/portal-selenium-test/src_test/com/axonivy/portal/selenium/page/GlobalSearchResultPage.java b/AxonIvyPortal/portal-selenium-test/src_test/com/axonivy/portal/selenium/page/GlobalSearchResultPage.java index 4f8646a99cf..4df01687d42 100644 --- a/AxonIvyPortal/portal-selenium-test/src_test/com/axonivy/portal/selenium/page/GlobalSearchResultPage.java +++ b/AxonIvyPortal/portal-selenium-test/src_test/com/axonivy/portal/selenium/page/GlobalSearchResultPage.java @@ -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); } diff --git a/AxonIvyPortal/portal-selenium-test/src_test/com/axonivy/portal/selenium/page/NewDashboardPage.java b/AxonIvyPortal/portal-selenium-test/src_test/com/axonivy/portal/selenium/page/NewDashboardPage.java index 805881e49db..f2b80084eee 100644 --- a/AxonIvyPortal/portal-selenium-test/src_test/com/axonivy/portal/selenium/page/NewDashboardPage.java +++ b/AxonIvyPortal/portal-selenium-test/src_test/com/axonivy/portal/selenium/page/NewDashboardPage.java @@ -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(); }