Skip to content

Commit

Permalink
bug/IVYPORTAL-17514-Fix-GUI-tests-LE
Browse files Browse the repository at this point in the history
- Remove resetFormattingLanguage method after fixing
  • Loading branch information
lmluat-axonivy committed Aug 28, 2024
1 parent d431466 commit 8f6f86c
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 22 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.axonivy.portal.selenium.common;

import static com.codeborne.selenide.Condition.exist;

import static com.codeborne.selenide.Selenide.$;
import static com.codeborne.selenide.Selenide.open;
import static com.codeborne.selenide.Selenide.refresh;
Expand All @@ -17,8 +18,6 @@
import org.openqa.selenium.support.ui.WebDriverWait;

import com.axonivy.ivy.webtest.engine.EngineUrl;
import com.axonivy.portal.selenium.page.NewDashboardPage;
import com.axonivy.portal.selenium.page.UserProfilePage;
import com.codeborne.selenide.Condition;
import com.codeborne.selenide.WebDriverRunner;

Expand Down Expand Up @@ -347,13 +346,6 @@ public void createJSonFile(String jsonFile, String key) {
redirectToRelativeLink(String.format(createJSonFileUrl, filepath, key));
}

public void resetFormattingLanguage() {
NewDashboardPage newDashboardPage = new NewDashboardPage();
UserProfilePage userProfilePage = newDashboardPage.openMyProfilePage();
userProfilePage.inputFormattingLanguage("English (United Kingdom)");
newDashboardPage = userProfilePage.save();
}

protected void showNewDashboard() {
redirectToRelativeLink(PORTAL_HOME_PAGE_URL);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package com.axonivy.portal.selenium.test;

import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;

Expand Down Expand Up @@ -83,9 +81,4 @@ public void testDepulishNotification() {
announcementPage.dePublish();
assertTrue(newDashboardPage.isAnnouncementMessageNotDisplayed());
}

@AfterEach
public void resetDefaultFormattingLanguage() {
resetFormattingLanguage();
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.axonivy.portal.selenium.test;

import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;

Expand Down Expand Up @@ -55,9 +54,4 @@ public void testChangeLanguage() {
private void createTestData() {
redirectToRelativeLink(createTestingTasksUrl);
}

@AfterEach
public void resetDefaultFormattingLanguage() {
resetFormattingLanguage();
}
}

0 comments on commit 8f6f86c

Please sign in to comment.