From dd09ac8abcd51c33cf31baf385373c282e8e1f55 Mon Sep 17 00:00:00 2001 From: eugene-dynamsoft Date: Thu, 19 Sep 2024 12:08:23 -0700 Subject: [PATCH] Commented out manually mock the camera script --- tests/e2e/test-MRZScanner.spec.ts | 4 ++-- tests/pages/MRZScannerPage.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/e2e/test-MRZScanner.spec.ts b/tests/e2e/test-MRZScanner.spec.ts index d1b27e6..ff6f6ec 100644 --- a/tests/e2e/test-MRZScanner.spec.ts +++ b/tests/e2e/test-MRZScanner.spec.ts @@ -11,8 +11,8 @@ test.describe("Verify the VIN Scanner Page title and veirfy user can select diff test.beforeEach(async ({ mrzScannerPage }) => { - // Mock the camera - await mrzScannerPage.grantCameraPermission(); + // // Mock the camera + // await mrzScannerPage.grantCameraPermission(); // Navigate to the VIN Scanner page await mrzScannerPage.navigateTo(); diff --git a/tests/pages/MRZScannerPage.ts b/tests/pages/MRZScannerPage.ts index 83b4a13..1f06fff 100644 --- a/tests/pages/MRZScannerPage.ts +++ b/tests/pages/MRZScannerPage.ts @@ -57,7 +57,7 @@ export class MRZScannerPage { } async navigateTo() { - await this.grantCameraPermission(); + // await this.grantCameraPermission(); await this.page.goto(URL); await this.closeDialogIfPresent(); }