Skip to content

Commit 797568e

Browse files
authored
Fix UI validation issue with clicking consent (#919)
fix: UI validation issue with clicking consent
1 parent 58f9afa commit 797568e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/utils/commonUtils.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ export async function handleConsentPopup(page: Page) {
66
const consentContent = page.locator('#truste-consent-content');
77
const isConsentContentVisibile = await consentContent.isVisible();
88
if(isConsentContentVisibile) {
9-
const consentButton = page.locator('#truste-consent-required');
9+
const consentButton = page.locator('#truste-consent-required').first();
10+
console.log((await consentButton.all()).length);
1011
expect(consentButton).toBeVisible();
1112
await consentButton.click();
1213
}

0 commit comments

Comments
 (0)