From dc812b869e2e26fc86dccc327e2b80528f4fded3 Mon Sep 17 00:00:00 2001 From: Luong Minh Luat <157108501+lmluat-axonivy@users.noreply.github.com> Date: Wed, 11 Sep 2024 12:01:51 +0700 Subject: [PATCH] Bug/ivyportal 17553 task write expiry timestamp does not work as expected le (#1028) * bug/IVYPORTAL-17553-TaskWriteExpiryTimestamp-does-not-work-as-expected-LE - Fix GUI tests --- .../Start Processes/DataCreation.p.json | 21 +++++++++++++++++++ .../Start Processes/CreateTestData.p.json | 9 +++++--- 2 files changed, 27 insertions(+), 3 deletions(-) diff --git a/AxonIvyPortal/PortalKitTestHelper/processes/Start Processes/DataCreation.p.json b/AxonIvyPortal/PortalKitTestHelper/processes/Start Processes/DataCreation.p.json index 7af11747ee3..b58ccf85c3e 100644 --- a/AxonIvyPortal/PortalKitTestHelper/processes/Start Processes/DataCreation.p.json +++ b/AxonIvyPortal/PortalKitTestHelper/processes/Start Processes/DataCreation.p.json @@ -1299,6 +1299,27 @@ "visual" : { "at" : { "x" : 640, "y" : 160 } } + }, { + "id" : "S10-f8", + "type" : "ErrorStartEvent", + "name" : "test:expiry", + "config" : { + "errorCode" : "test:expiry" + }, + "visual" : { + "at" : { "x" : 64, "y" : 464 }, + "labelOffset" : { "x" : 13, "y" : 33 } + }, + "connect" : [ + { "id" : "S10-f9", "to" : "S10-f12" } + ] + }, { + "id" : "S10-f12", + "type" : "TaskEnd", + "visual" : { + "at" : { "x" : 544, "y" : 464 }, + "labelOffset" : { "x" : 13, "y" : 33 } + } } ], "visual" : { "at" : { "x" : 256, "y" : 1152 }, diff --git a/Showcase/portal-developer-examples/processes/Start Processes/CreateTestData.p.json b/Showcase/portal-developer-examples/processes/Start Processes/CreateTestData.p.json index 2ff7e477ea7..14f8a6da235 100644 --- a/Showcase/portal-developer-examples/processes/Start Processes/CreateTestData.p.json +++ b/Showcase/portal-developer-examples/processes/Start Processes/CreateTestData.p.json @@ -605,7 +605,8 @@ "level" : "HIGH" }, "expiry" : { - "timeout" : "new Duration(\"1D\")" + "timeout" : "new Duration(\"1D\")", + "error" : "f88" }, "customFields" : [ { "name" : "AccountNumber", "type" : "NUMBER", "value" : "14" }, @@ -624,7 +625,8 @@ "activator" : "\"demo\"" }, "expiry" : { - "timeout" : "new Duration(\"3H\")" + "timeout" : "new Duration(\"3H\")", + "error" : "f88" }, "customFields" : [ { "name" : "AccountNumber", "type" : "NUMBER", "value" : "7" }, @@ -642,7 +644,8 @@ "level" : "LOW" }, "expiry" : { - "timeout" : "new Duration(\"2D\")" + "timeout" : "new Duration(\"2D\")", + "error" : "f88" }, "customFields" : [ { "name" : "AccountNumber", "type" : "NUMBER", "value" : "13" },