From 936e754d9ede8b7ee2c7d8623608c27f94b5305b Mon Sep 17 00:00:00 2001 From: eugene-dynamsoft Date: Tue, 8 Oct 2024 13:37:53 -0700 Subject: [PATCH] attempt to fix the Error: Failed to open indexedDB: Timeout. issue by granting permission to indexedDB for firefox. --- playwright.config.js | 7 ++++++- tests/e2e/test-MRZScanner.spec.ts | 3 --- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/playwright.config.js b/playwright.config.js index e4d33f5..e4b63cb 100644 --- a/playwright.config.js +++ b/playwright.config.js @@ -49,7 +49,7 @@ export default defineConfig({ }, contextOptions: { /* Camera permission */ - permissions: ["camera"], + permissions: ["camera", "indexedDB"], ignoreHTTPSErrors: true, }, }, @@ -77,6 +77,11 @@ export default defineConfig({ }, }, }, + contextOptions: { + /* Camera permission */ + permissions: ["camera", "indexedDB"], + ignoreHTTPSErrors: true, + }, }, // { // name: "webkit", diff --git a/tests/e2e/test-MRZScanner.spec.ts b/tests/e2e/test-MRZScanner.spec.ts index c297146..cead1ed 100644 --- a/tests/e2e/test-MRZScanner.spec.ts +++ b/tests/e2e/test-MRZScanner.spec.ts @@ -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(); });