Skip to content

Commit

Permalink
bug/IVYPORTAL-17514-Fix-GUI-tests-LE
Browse files Browse the repository at this point in the history
- Update AnnouncementTest
  • Loading branch information
lmluat-axonivy committed Aug 28, 2024
1 parent 8f6f86c commit defc3c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.axonivy.portal.selenium.page;

import static com.codeborne.selenide.Condition.appear;
import static com.codeborne.selenide.Selenide.$;

import org.openqa.selenium.By;
Expand All @@ -14,8 +15,7 @@ protected String getLoadedLocator() {
}

public String getInfoSummary() {
return WebDriverRunner.getWebDriver().findElement(By.cssSelector("div[id$='messages'] span[class$='summary']"))
.getText();
return $("div[id$='announcement-tab']").shouldBe(appear, DEFAULT_TIMEOUT).$("span.ui-messages-error-summary").shouldBe(appear, DEFAULT_TIMEOUT).getText();
}

public void publish() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public void testShouldDisplayNotification() {
}

@Test
public void testDepulishNotification() {
public void testDepublishNotification() {
NewDashboardPage newDashboardPage = new NewDashboardPage();
AdminSettingsPage adminSettingsPage = newDashboardPage.openAdminSettings();
AnnouncementPage announcementPage = adminSettingsPage.openAnnouncementTab();
Expand Down

0 comments on commit defc3c7

Please sign in to comment.