From 2a011b5a64ff4a9f88719cfad4fbc6f0958cb33e Mon Sep 17 00:00:00 2001 From: eugene-dynamsoft Date: Thu, 19 Sep 2024 13:00:18 -0700 Subject: [PATCH] remove the waitfor visible for the license warning dialog --- tests/pages/MRZScannerPage.ts | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/tests/pages/MRZScannerPage.ts b/tests/pages/MRZScannerPage.ts index 1f06fff..bf2946c 100644 --- a/tests/pages/MRZScannerPage.ts +++ b/tests/pages/MRZScannerPage.ts @@ -48,16 +48,18 @@ export class MRZScannerPage { * Close the license related dialog if it shows. */ async closeDialogIfPresent() { - try { - this.dialogCloseButton.waitFor({ state: "visible", timeout: 5000 }); - await this.dialogCloseButton.click(); - } catch (error) { - console.log("Failed to close the dialog: ", error); - } + // try { + // this.dialogCloseButton.waitFor({ state: "visible", timeout: 5000 }); + // await this.dialogCloseButton.click(); + // } catch (error) { + // console.log("Failed to close the dialog: ", error); + // } + + await this.dialogCloseButton.click(); } async navigateTo() { - // await this.grantCameraPermission(); + await this.grantCameraPermission(); await this.page.goto(URL); await this.closeDialogIfPresent(); }