From ee1465cbdb3fb26a5bd08f7d85906fa88b0fdac3 Mon Sep 17 00:00:00 2001 From: Tung Le <76459536+lttung-axonivy@users.noreply.github.com> Date: Fri, 13 Sep 2024 18:30:18 +0700 Subject: [PATCH] IVYPORTAL-17649 Create sprint release (#1035) Fix screenshot tests --- .../resources/testFile/custom-case-details-with-url.json | 2 +- .../resources/testFile/custom-user-menu.json | 2 +- .../resources/testFile/task-details-custom-iframe.json | 2 +- .../com/axonivy/portal/selenium/page/CaseDetailsPage.java | 2 +- .../com/axonivy/portal/selenium/page/TaskDetailsPage.java | 2 +- .../resources/files/variables.Portal.CaseDetails.json | 2 +- .../resources/files/variables.Portal.TaskDetails.json | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/AxonIvyPortal/portal-selenium-test/resources/testFile/custom-case-details-with-url.json b/AxonIvyPortal/portal-selenium-test/resources/testFile/custom-case-details-with-url.json index a0583af3ea3..3c6670527a8 100644 --- a/AxonIvyPortal/portal-selenium-test/resources/testFile/custom-case-details-with-url.json +++ b/AxonIvyPortal/portal-selenium-test/resources/testFile/custom-case-details-with-url.json @@ -74,7 +74,7 @@ "x": 6, "y": 0, "w": 6, "h": 8 }, "data": { - "url": "https://www.axonivy.com/" + "url": "https://www.example.com" } } ] diff --git a/AxonIvyPortal/portal-selenium-test/resources/testFile/custom-user-menu.json b/AxonIvyPortal/portal-selenium-test/resources/testFile/custom-user-menu.json index 1f9adb09016..9c9989ac9b1 100644 --- a/AxonIvyPortal/portal-selenium-test/resources/testFile/custom-user-menu.json +++ b/AxonIvyPortal/portal-selenium-test/resources/testFile/custom-user-menu.json @@ -5,7 +5,7 @@ "permissions": [ "#demo" ], - "url": "https://www.axonivy.com/" + "url": "https://www.example.com" }, { "id": "express", diff --git a/AxonIvyPortal/portal-selenium-test/resources/testFile/task-details-custom-iframe.json b/AxonIvyPortal/portal-selenium-test/resources/testFile/task-details-custom-iframe.json index 5d8f9589884..41242f5723f 100644 --- a/AxonIvyPortal/portal-selenium-test/resources/testFile/task-details-custom-iframe.json +++ b/AxonIvyPortal/portal-selenium-test/resources/testFile/task-details-custom-iframe.json @@ -17,7 +17,7 @@ "h": 6 }, "data": { - "url": "https://www.axonivy.com/" + "url": "https://www.example.com" } } ] diff --git a/AxonIvyPortal/portal-selenium-test/src_test/com/axonivy/portal/selenium/page/CaseDetailsPage.java b/AxonIvyPortal/portal-selenium-test/src_test/com/axonivy/portal/selenium/page/CaseDetailsPage.java index 67f1114b044..466fe8117ac 100644 --- a/AxonIvyPortal/portal-selenium-test/src_test/com/axonivy/portal/selenium/page/CaseDetailsPage.java +++ b/AxonIvyPortal/portal-selenium-test/src_test/com/axonivy/portal/selenium/page/CaseDetailsPage.java @@ -270,7 +270,7 @@ public void waitForIFrameWidgetLoad() { public void waitForIFrameURLWidgetLoad() { $("[name='custom-widget-iframe-url']").shouldBe(appear, DEFAULT_TIMEOUT); switchToIframeWithNameOrId("custom-widget-iframe-url"); - $("a[href='https://www.axonivy.com']").shouldBe(Condition.visible, DEFAULT_TIMEOUT); + $("a[href='https://www.iana.org/domains/example']").shouldBe(Condition.visible, DEFAULT_TIMEOUT); switchBackToParent(); } diff --git a/AxonIvyPortal/portal-selenium-test/src_test/com/axonivy/portal/selenium/page/TaskDetailsPage.java b/AxonIvyPortal/portal-selenium-test/src_test/com/axonivy/portal/selenium/page/TaskDetailsPage.java index 6fb48eb00ba..1f6e69153c3 100644 --- a/AxonIvyPortal/portal-selenium-test/src_test/com/axonivy/portal/selenium/page/TaskDetailsPage.java +++ b/AxonIvyPortal/portal-selenium-test/src_test/com/axonivy/portal/selenium/page/TaskDetailsPage.java @@ -281,7 +281,7 @@ public void clickOnShowMoreHistories() { public void waitForIFrameURLWidgetLoad() { switchToIframeWithNameOrId("custom-widget-iframe-url"); - $("a[href='https://www.axonivy.com']").shouldBe(Condition.visible, DEFAULT_TIMEOUT); + $("a[href='https://www.iana.org/domains/example']").shouldBe(Condition.visible, DEFAULT_TIMEOUT); switchBackToParent(); } diff --git a/Showcase/portal-developer-examples/resources/files/variables.Portal.CaseDetails.json b/Showcase/portal-developer-examples/resources/files/variables.Portal.CaseDetails.json index f592fbea8f5..26cf4cff366 100644 --- a/Showcase/portal-developer-examples/resources/files/variables.Portal.CaseDetails.json +++ b/Showcase/portal-developer-examples/resources/files/variables.Portal.CaseDetails.json @@ -65,7 +65,7 @@ "x": 6, "y": 8, "w": 6, "h": 11 }, "data": { - "url": "https://www.axonivy.com/" + "url": "https://www.example.com" } } ] diff --git a/Showcase/portal-developer-examples/resources/files/variables.Portal.TaskDetails.json b/Showcase/portal-developer-examples/resources/files/variables.Portal.TaskDetails.json index 228236565b4..4bfaf45c6ae 100644 --- a/Showcase/portal-developer-examples/resources/files/variables.Portal.TaskDetails.json +++ b/Showcase/portal-developer-examples/resources/files/variables.Portal.TaskDetails.json @@ -47,7 +47,7 @@ "x": 6, "y": 4, "w": 6, "h": 7 }, "data": { - "url": "https://www.axonivy.com/" + "url": "https://www.example.com" } }, { "type": "custom",