From 79ad9117978a04d21f19789c576cbba06fd31701 Mon Sep 17 00:00:00 2001 From: PioBar <72926984+Pio-Bar@users.noreply.github.com> Date: Tue, 17 Dec 2024 15:36:54 +0100 Subject: [PATCH] fix: failing anonymous-consents-flow e2e test (#19787) --- .../cypress/helpers/anonymous-consents.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {