test: protect yarn pnp example against cypress script redefinition (#… #2090
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: example-firefox | |
on: | |
push: | |
branches: | |
- 'master' | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
# ~~~~~~~~~~~~~~~~~~ Cypress v9 and below (using Legacy configuration) ~~~~~~~~~~~~~~~~~~~ # | |
# An example test using the Mozilla Firefox browser with Cypress v9 is no longer included here. | |
# | |
# Firefox connects unreliably with Cypress v9, as described in the closed Cypress issue | |
# https://github.com/cypress-io/cypress/issues/23215. | |
# It is not planned to resolve the issue in Cypress v9. | |
# The problem is however resolved in Cypress v10 and later. | |
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Cypress v10 and higher ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # | |
firefox: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Firefox | |
uses: ./ | |
timeout-minutes: 3 | |
with: | |
# let's show browser and system info | |
build: npx cypress info | |
working-directory: examples/browser | |
browser: firefox | |
# report screenshot size and store the screenshots as test artifacts | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: screenshots-in-firefox | |
path: examples/browser/cypress/screenshots | |
- run: npx image-size cypress/screenshots/**/*.png | |
working-directory: examples/browser |