Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Playwright test to MRZ Scanner #4

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

eugene-dynamsoft
Copy link
Collaborator

@eugene-dynamsoft eugene-dynamsoft commented Sep 3, 2024

Added more e2e test cases, and setup for chrome.

NOTE - add testing of license to the demo branch before dloying

Updated license test to ensure demo license is used. Added yml file for github action

Change playwright config back to headless and added test setup in the README.

Configure playwright test to be executed on github

Adding scan mode button selection UI Test to MRZ Scanner

Use fake media stream for github action test

Do not fail the test if the license warning dialog does not display, just print an error log

Commented out manually mock the camera script

remove the waitfor visible for the license warning dialog

Removing grantCameraPermission scrpit, added extra timeout to wait for dom content to be loaded

Added debug log to see the status of indexedDB during github action firefox execution

Try out not using headless for firefox

Update userAgent string to use firefox v130

Added extra long timeout after clicked on start button to ensure firefox loads all relevant objects

Removing extra wait, removing the grantPermission script as it only produced warning log. Added a new firefoxuserpref value "datareporting.policy.firstRunURL": ""

use clean install for github action and added root location for github firefox issue. Changed chrome project to use real camera instead of fake.

Added container image and remove master branch from triggering the github action

attempt to fix the Error: Failed to open indexedDB: Timeout. issue by granting permission to indexedDB for firefox.

revert the changes for granting chrome indexedDB permission. Update firefox to headless

Adding fake video file as fake video capture input and use it in chrome.

Cleaned up and use a 2D QR Code video as fake stream.

Added manual trigger for playwright github action
Copy link

github-actions bot commented Oct 15, 2024

PR Preview Action v1.4.3
🚀 Deployed preview to https://Dynamsoft.github.io/mrz-scanner-javascript/pr-preview/pr-4/
on branch gh-pages at 2024-10-15 22:22 UTC

@felixindynamsoft felixindynamsoft changed the title Adding Playwright test to generalMRZ demo project Adding Playwright test to MRZ Scanner Oct 15, 2024
@felixindynamsoft felixindynamsoft changed the title Adding Playwright test to MRZ Scanner feat: Playwright test to MRZ Scanner Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants