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: add scripts for testing in docker container #352

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

Pavel-Tyan
Copy link
Contributor

@Pavel-Tyan Pavel-Tyan commented Dec 22, 2024

Add scripts for running screenshots tests in docker container for the same tests results on different OS.

Screenshot testing results depend on the OS. For this reason, tests are run in a Docker container with Ubuntu.

How it works:

Docker builds copy of app and runs screenshot tests in container. There are mounting for components and playwright-report folders. Due to this, the results of tests (screenshots, test report) in the container also appear on the host.

@yc-ui-bot
Copy link
Contributor

Visual Tests Report is ready.

Without "HOME: /root" firefox crashes during testing in GitHub Actions
testing in pr-visual-tests.yml
Npm command for testing can be passed as argument for testing scripts.

Mount playwright-report folder to see test results from container
Add .dockerignore to ignore node_modules folders.
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