From f2912406447780730540c4686957bb3cd9ebbdfd Mon Sep 17 00:00:00 2001 From: Zenit Shkreli <69572953+zenit2001@users.noreply.github.com> Date: Wed, 4 Dec 2024 16:14:30 +0100 Subject: [PATCH] chore: clicking consent button if visible --- tests/playwright/pages/CheckoutPageSFRA5.mjs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/playwright/pages/CheckoutPageSFRA5.mjs b/tests/playwright/pages/CheckoutPageSFRA5.mjs index 30e965d41..6cb40f553 100644 --- a/tests/playwright/pages/CheckoutPageSFRA5.mjs +++ b/tests/playwright/pages/CheckoutPageSFRA5.mjs @@ -104,6 +104,9 @@ export default class CheckoutPageSFRA5 { await this.successMessage.waitFor({ visible: true }); await this.navigateToCheckout(locale); + if (this.consentButton.isVisible()) { + this.consentButton.click(); + } await this.checkoutGuest.click(); };