From d9e70134cfbecb4d8bb0769e0cfd849cd961bb77 Mon Sep 17 00:00:00 2001 From: Lam Nguyen Date: Tue, 5 Aug 2025 09:35:00 -0700 Subject: [PATCH] fix: UI validation issue with clicking consent --- tests/utils/commonUtils.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/utils/commonUtils.ts b/tests/utils/commonUtils.ts index 4a20e87b7..31585a9db 100644 --- a/tests/utils/commonUtils.ts +++ b/tests/utils/commonUtils.ts @@ -6,7 +6,8 @@ export async function handleConsentPopup(page: Page) { const consentContent = page.locator('#truste-consent-content'); const isConsentContentVisibile = await consentContent.isVisible(); if(isConsentContentVisibile) { - const consentButton = page.locator('#truste-consent-required'); + const consentButton = page.locator('#truste-consent-required').first(); + console.log((await consentButton.all()).length); expect(consentButton).toBeVisible(); await consentButton.click(); }