Skip to content

Commit

Permalink
Removing grantCameraPermission scrpit, added extra timeout to wait fo…
Browse files Browse the repository at this point in the history
…r dom content to be loaded
  • Loading branch information
eugene-dynamsoft committed Sep 19, 2024
1 parent 2a011b5 commit 5bb8599
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/pages/MRZScannerPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export class MRZScannerPage {
}

async navigateTo() {
await this.grantCameraPermission();
// await this.grantCameraPermission();
await this.page.goto(URL);
await this.closeDialogIfPresent();
}
Expand All @@ -77,7 +77,7 @@ export class MRZScannerPage {

// Ensuring the page is loaded after clicked on the Start button
await this.page.waitForLoadState('networkidle', {timeout: 30000});
await this.page.waitForLoadState('domcontentloaded');
await this.page.waitForLoadState('domcontentloaded', {timeout: 30000});
}

async clickscanIDButton() {
Expand Down

0 comments on commit 5bb8599

Please sign in to comment.