From 4441e00982533219a0f0bfb3c8b2504980ca3b79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CNandanAnantharamu=E2=80=9D?= <“nandan@thinkify.io”> Date: Tue, 4 Feb 2025 22:41:32 +0530 Subject: [PATCH 1/3] test: datepicker3 test fix --- .../ClientSide/Widgets/Datepicker/DatePicker3_spec.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/client/cypress/e2e/Regression/ClientSide/Widgets/Datepicker/DatePicker3_spec.ts b/app/client/cypress/e2e/Regression/ClientSide/Widgets/Datepicker/DatePicker3_spec.ts index b2aee9b4ea00..ac6a077bc0fc 100644 --- a/app/client/cypress/e2e/Regression/ClientSide/Widgets/Datepicker/DatePicker3_spec.ts +++ b/app/client/cypress/e2e/Regression/ClientSide/Widgets/Datepicker/DatePicker3_spec.ts @@ -255,7 +255,14 @@ describe( agHelper.GetNClick(locators._existingFieldTextByName("Max Date")); agHelper.GetNClick(datePickerlocators.calendarHeader, 1); agHelper.GetNClick(dataSources._visibleTextSpan("Feb"), 0, true); - agHelper.GetNClick(datePickerlocators.calendarHeader, 2); + agHelper.GetNClick(datePickerlocators.calendarHeader, 2, true); + agHelper + .GetAttribute(datePickerlocators.calendarHeader, "data-state", 2) + .then((state) => { + if (state === "closed") { + agHelper.GetNClick(datePickerlocators.calendarHeader, 2, true); + } + }); agHelper.GetNClick(datePickerlocators.year("2023"), 0, true); agHelper.GetNClick(datePickerlocators.date("010")); deployMode.DeployApp(); From 90b7a7d991ca840c514b66f73cefec3eea8575be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CNandanAnantharamu=E2=80=9D?= <“nandan@thinkify.io”> Date: Tue, 4 Feb 2025 23:16:03 +0530 Subject: [PATCH 2/3] updated limited run file --- app/client/cypress/limited-tests.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/client/cypress/limited-tests.txt b/app/client/cypress/limited-tests.txt index 00e32a4629d0..2260b07491e0 100644 --- a/app/client/cypress/limited-tests.txt +++ b/app/client/cypress/limited-tests.txt @@ -1,7 +1,7 @@ # To run only limited tests - give the spec names in below format: -#cypress/e2e/Regression/ClientSide/VisualTests/JSEditorIndent_spec.js +cypress/e2e/Regression/ClientSide/Widgets/Datepicker/DatePicker3_spec.ts # For running all specs - uncomment below: #cypress/e2e/**/**/* -cypress/e2e/Regression/ClientSide/Anvil/Widgets/* +#cypress/e2e/Regression/ClientSide/Anvil/Widgets/* #ci-test-limit uses this file to run minimum of specs. Do not run entire suite with this command. From b1ecdd9509dda326e298b7bcfa9c52f6b1feb1c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CNandanAnantharamu=E2=80=9D?= <“nandan@thinkify.io”> Date: Wed, 5 Feb 2025 23:18:59 +0530 Subject: [PATCH 3/3] reverted limited run file --- app/client/cypress/limited-tests.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/client/cypress/limited-tests.txt b/app/client/cypress/limited-tests.txt index 2260b07491e0..00e32a4629d0 100644 --- a/app/client/cypress/limited-tests.txt +++ b/app/client/cypress/limited-tests.txt @@ -1,7 +1,7 @@ # To run only limited tests - give the spec names in below format: -cypress/e2e/Regression/ClientSide/Widgets/Datepicker/DatePicker3_spec.ts +#cypress/e2e/Regression/ClientSide/VisualTests/JSEditorIndent_spec.js # For running all specs - uncomment below: #cypress/e2e/**/**/* -#cypress/e2e/Regression/ClientSide/Anvil/Widgets/* +cypress/e2e/Regression/ClientSide/Anvil/Widgets/* #ci-test-limit uses this file to run minimum of specs. Do not run entire suite with this command.