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

Write a Github Actions that runs the Jasmine tests for the frontend https://developer.adobe.com/commerce/testing/guide/js/ #6

Open
damienwebdev opened this issue Oct 28, 2022 · 2 comments

Comments

@damienwebdev
Copy link
Member

No description provided.

@Igloczek
Copy link
Contributor

Igloczek commented Oct 29, 2022

There is a problem with running headless Chromium, most likely related to old versions of puppeteer in grunt-contrib-jasmine package, which is not actively maintained, same as other Grunt things.

Quick fix is to symlink binary to the correct place:

apt install chromium
ln -s /usr/bin/chromium /usr/bin/chromium-browser

On M1 Macs it's a bit more complicated, there is a description how to make it works - puppeteer/puppeteer#6622 (comment)

Besides that, the linked guide is fine, I managed to run them locally, most of them are green, except this one magento/magento2#36395

Unfortunately, tests are slow, it takes about 10 min to run tests for backend, blank and luma.

In case of any problems, it's best to re-run a single test file using:

grunt spec:blank --file="dev/tests/js/jasmine/tests/..."

@damienwebdev
Copy link
Member Author

@Igloczek thanks for doing this investigation, it's really wonderful. Are you able to replicate the steps you ran locally and add an action for them here? https://github.com/graycoreio/github-actions-magento2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

2 participants