Skip to content

Commit

Permalink
attempt to fix the Error: Failed to open indexedDB: Timeout. issue by…
Browse files Browse the repository at this point in the history
… granting permission to indexedDB for firefox.
  • Loading branch information
eugene-dynamsoft committed Oct 8, 2024
1 parent dadb712 commit 936e754
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
7 changes: 6 additions & 1 deletion playwright.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default defineConfig({
},
contextOptions: {
/* Camera permission */
permissions: ["camera"],
permissions: ["camera", "indexedDB"],
ignoreHTTPSErrors: true,
},
},
Expand Down Expand Up @@ -77,6 +77,11 @@ export default defineConfig({
},
},
},
contextOptions: {
/* Camera permission */
permissions: ["camera", "indexedDB"],
ignoreHTTPSErrors: true,
},
},
// {
// name: "webkit",
Expand Down
3 changes: 0 additions & 3 deletions tests/e2e/test-MRZScanner.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ test.describe("Verify the VIN Scanner Page title and veirfy user can select diff

test.beforeEach(async ({ mrzScannerPage }) => {

// // Mock the camera
// await mrzScannerPage.grantCameraPermission();

// Navigate to the VIN Scanner page
await mrzScannerPage.navigateTo();
});
Expand Down

0 comments on commit 936e754

Please sign in to comment.