diff --git a/projects/storefrontapp-e2e-cypress/cypress/helpers/anonymous-consents.ts b/projects/storefrontapp-e2e-cypress/cypress/helpers/anonymous-consents.ts index 2340de85406..4958262afc0 100644 --- a/projects/storefrontapp-e2e-cypress/cypress/helpers/anonymous-consents.ts +++ b/projects/storefrontapp-e2e-cypress/cypress/helpers/anonymous-consents.ts @@ -133,7 +133,7 @@ export function checkDialogClosed() { } export function closeAnonymousConsentsDialog() { - cy.get(`${ANONYMOUS_DIALOG} button.close`).click({ force: true }); + cy.get(`${ANONYMOUS_DIALOG} button.close`).first().click({ force: true }); } export function toggleAnonymousConsent(position) {