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(); });