Skip to content

Commit

Permalink
remove the waitfor visible for the license warning dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
eugene-dynamsoft committed Sep 19, 2024
1 parent dd09ac8 commit 2a011b5
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions tests/pages/MRZScannerPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 2a011b5

Please sign in to comment.