From fc4defc090353346cd440f1b517f88927987f296 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CNandanAnantharamu=E2=80=9D?= <“nandan@thinkify.io”> Date: Mon, 16 Sep 2024 15:26:07 +0530 Subject: [PATCH 1/2] test: fix for Context property pane 1 --- .../IDE/Canvas_Context_Property_Pane_1_spec.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/app/client/cypress/e2e/Regression/ClientSide/IDE/Canvas_Context_Property_Pane_1_spec.js b/app/client/cypress/e2e/Regression/ClientSide/IDE/Canvas_Context_Property_Pane_1_spec.js index 9b4fca2e6bce..19a5014c97ce 100644 --- a/app/client/cypress/e2e/Regression/ClientSide/IDE/Canvas_Context_Property_Pane_1_spec.js +++ b/app/client/cypress/e2e/Regression/ClientSide/IDE/Canvas_Context_Property_Pane_1_spec.js @@ -211,12 +211,14 @@ function verifyPropertyPaneSectionState(propertySectionState) { for (const [sectionName, shouldSectionOpen] of Object.entries( propertySectionState, )) { - cy.get("body").then(($body) => { - const isSectionOpen = - $body.find(`${propertySectionClass(sectionName)} .t--chevron-icon`) - .length > 0; - expect(isSectionOpen).to.equal(shouldSectionOpen); - }); + cy.get(`${propertySectionClass(sectionName)}`) + .siblings(".bp3-collapse") + .find(".bp3-collapse-body") + .invoke("attr", "aria-hidden") + .then((isSectionOpen) => { + const expectedValue = shouldSectionOpen ? "false" : "true"; // Convert boolean to aria-hidden value + expect(isSectionOpen).to.equal(expectedValue); + }); } } From 0943b11970e3c4d9a756bd3245c5c680a293ba29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CNandanAnantharamu=E2=80=9D?= <“nandan@thinkify.io”> Date: Mon, 16 Sep 2024 15:28:23 +0530 Subject: [PATCH 2/2] updated limited run file --- app/client/cypress/limited-tests.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/client/cypress/limited-tests.txt b/app/client/cypress/limited-tests.txt index 31c0c0253fef..31739fd62ed1 100644 --- a/app/client/cypress/limited-tests.txt +++ b/app/client/cypress/limited-tests.txt @@ -1,5 +1,5 @@ # To run only limited tests - give the spec names in below format: -cypress/e2e/Regression/ClientSide/Templates/Fork_Template_spec.js +cypress/e2e/Regression/ClientSide/IDE/Canvas_Context_Property_Pane_1_spec.js # For running all specs - uncomment below: #cypress/e2e/**/**/*