diff --git a/ui.af.apps/src/main/content/jcr_root/apps/core/fd/components/form/termsandconditions/v1/termsandconditions/termsandconditions.html b/ui.af.apps/src/main/content/jcr_root/apps/core/fd/components/form/termsandconditions/v1/termsandconditions/termsandconditions.html index 74e5c110ba..108b4cdaac 100644 --- a/ui.af.apps/src/main/content/jcr_root/apps/core/fd/components/form/termsandconditions/v1/termsandconditions/termsandconditions.html +++ b/ui.af.apps/src/main/content/jcr_root/apps/core/fd/components/form/termsandconditions/v1/termsandconditions/termsandconditions.html @@ -39,7 +39,7 @@ data-cmp-visible="${tnc.showAsPopup ? 'false' : 'true'}">
-

diff --git a/ui.tests/test-module/specs/termsandconditions/tnc.runtime.cy.js b/ui.tests/test-module/specs/termsandconditions/tnc.runtime.cy.js index 6858432dfd..8668c434be 100644 --- a/ui.tests/test-module/specs/termsandconditions/tnc.runtime.cy.js +++ b/ui.tests/test-module/specs/termsandconditions/tnc.runtime.cy.js @@ -103,7 +103,10 @@ describe("Form Runtime with Terms and Conditions", () => { expect(model.getState().items[1].enabled).to.equal(true); cy.get(`#${tncWithPopup} .cmp-adaptiveform-termsandcondition__content-container`) .invoke('attr', 'data-cmp-visible').should('not.exist'); - cy.get(`#${tncWithPopup} .cmp-adaptiveform-termsandcondition__close-button`).click() + cy.get(`#${tncWithPopup} .cmp-adaptiveform-termsandcondition__close-button`) + .should('have.attr', 'aria-label') + .and('not.be.empty') + .click() .then(() => { cy.get(`#${tncWithPopup} .cmp-adaptiveform-termsandcondition__content-container`) .invoke('attr', 'data-cmp-visible').should('eq', 'false', );