Skip to content

Commit fa594a8

Browse files
Fix test
1 parent 0d244ce commit fa594a8

File tree

1 file changed

+1
-3
lines changed
  • dotcom-rendering/playwright/lib

1 file changed

+1
-3
lines changed

dotcom-rendering/playwright/lib/cmp.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ const CMP_LAYER2_REJECT_ALL_BUTTON = 'button.sp_choice_type_REJECT_ALL';
1616
*/
1717
const cmpAcceptAll = async (page: Page, rootIframe?: string): Promise<void> => {
1818
const root = rootIframe ? page.frameLocator(rootIframe) : page;
19-
const acceptAllButton = root
20-
.frameLocator(CMP_LAYER1_IFRAME)
21-
.locator(CMP_LAYER1_ACCEPT_ALL_BUTTON);
19+
const acceptAllButton = root.locator(CMP_LAYER1_ACCEPT_ALL_BUTTON);
2220
await acceptAllButton.click();
2321
// wait for consent settings to apply
2422
await new Promise((r) => setTimeout(r, 2000));

0 commit comments

Comments
 (0)