From 0175151939c3935a749a3e577ccb998ed849a5aa Mon Sep 17 00:00:00 2001 From: Fernando Terra Date: Fri, 20 Sep 2024 17:49:27 -0300 Subject: [PATCH] fix: show the Read-only notification always --- ...egisteredClientInformationWizardStep.cy.ts | 24 +++++++++---------- ...cRegisteredClientInformationWizardStep.vue | 1 - 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/frontend/cypress/e2e/pages/staffform/BcRegisteredClientInformationWizardStep.cy.ts b/frontend/cypress/e2e/pages/staffform/BcRegisteredClientInformationWizardStep.cy.ts index 7d74e0e201..9eccdef06d 100644 --- a/frontend/cypress/e2e/pages/staffform/BcRegisteredClientInformationWizardStep.cy.ts +++ b/frontend/cypress/e2e/pages/staffform/BcRegisteredClientInformationWizardStep.cy.ts @@ -445,21 +445,21 @@ describe("Bc Registered Staff Wizard Step", () => { } if (scenario.showData) { - const success = Object.entries(scenario) - .filter( - ([key, value]) => - key.startsWith("show") && key.endsWith("Notification") - ) - .map(([key, value]) => value) - .every((value) => value === false); + /* + This variable might be useful in the future to test the button Next gets enabled on + success. But we'll probably need to fix FSADT1-1496 first. + */ + // const success = Object.entries(scenario) + // .filter( + // ([key, value]) => + // key.startsWith("show") && key.endsWith("Notification") + // ) + // .map(([key, value]) => value) + // .every((value) => value === false); cy.get( ".read-only-box > cds-inline-notification#readOnlyNotification" - ).should( - success || scenario.showDuplicatedNotification - ? "exist" - : "not.exist" - ); + ).should("exist"); cy.get(`.read-only-box > #legalType > .title-group-01 > .label-01`) .should("exist") diff --git a/frontend/src/pages/staffform/BcRegisteredClientInformationWizardStep.vue b/frontend/src/pages/staffform/BcRegisteredClientInformationWizardStep.vue index c35d5c2296..764bcb7131 100644 --- a/frontend/src/pages/staffform/BcRegisteredClientInformationWizardStep.vue +++ b/frontend/src/pages/staffform/BcRegisteredClientInformationWizardStep.vue @@ -398,7 +398,6 @@ onMounted(() => {