Skip to content

Commit

Permalink
feature/IVYPORTAL-18044-Stabilize-screenshot-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nhthinh-axonivy committed Dec 3, 2024
1 parent f79347a commit cc90728
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public void captureScreenshotGrowlMessage() throws IOException {
taskTemplatePage.switchToIFrameOfTask();
taskTemplatePage.clickCancelButton();
ScreenshotUtils.resizeBrowser(new Dimension(1366, 800));
// taskTemplatePage.switchToDefaultContent();
taskTemplatePage.switchToDefaultContent();
newDashboardPage = new NewDashboardPage();
newDashboardPage.waitForGrowlMessageDisplayClearly();
ScreenshotUtils
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,6 @@ public void screenshotActionWarningDialogWhenStartTask() throws IOException {
taskIframePage.switchToIFrameOfTask();
taskIframePage.clickCancelAndLeftButton();


newDashboardPage = new NewDashboardPage();
newDashboardPage.waitForTaskWidgetLoaded();
newDashboardPage.startTask(0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,8 @@ public void clickCreateGroupChatBtn() {

public void clickCancelAndLeftButton() {
waitForElementClickableThenClick("a[id$='button-cancel']");
switchToDefaultContent();
clickByJavaScript($(By.linkText("Cancel")));
switchBackToParent();
}

public int countSideSteps() {
Expand Down

0 comments on commit cc90728

Please sign in to comment.