From 00cc8ad2b37f1f15663abca4b4c5daa4bc147ecb Mon Sep 17 00:00:00 2001 From: jean Date: Wed, 21 Dec 2022 11:25:45 +0800 Subject: [PATCH] fix test scripts to work with access popup iframe --- e2e-test-suite/pages/access-popup.page.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/e2e-test-suite/pages/access-popup.page.ts b/e2e-test-suite/pages/access-popup.page.ts index bfa2fc6aa..32f72db4e 100644 --- a/e2e-test-suite/pages/access-popup.page.ts +++ b/e2e-test-suite/pages/access-popup.page.ts @@ -7,9 +7,9 @@ export default class AccessPopup { this.page = page } - // iframeClipboard = () => this.page.frameLocator('iframe[allow="clipboard-read"]') - // btnAccept = () => this.iframeClipboard().locator('#tn-access-accept') - // btnDeny = () => this.iframeClipboard().locator('#tn-access-deny') - btnAccept = () => this.page.locator('#tn-access-accept') - btnDeny = () => this.page.locator('#tn-access-deny') + iframeClipboard = () => this.page.frameLocator('iframe[allow="clipboard-read"]') + btnAccept = () => this.iframeClipboard().locator('#tn-access-accept') + btnDeny = () => this.iframeClipboard().locator('#tn-access-deny') + // btnAccept = () => this.page.locator('#tn-access-accept') + // btnDeny = () => this.page.locator('#tn-access-deny') } \ No newline at end of file