Skip to content

Merge branch 'main' into LYNX-722 #1301

Merge branch 'main' into LYNX-722

Merge branch 'main' into LYNX-722 #1301

name: Cypress E2E Tests
on: push
jobs:
cypress-run:
# If you want this job to run on your fork, remove the below "if" line.
# You will need to "fix" the tests as they are specific to Adobe Commmerce's
# demo backend.
if: github.repository == 'hlxsites/aem-boilerplate-commerce'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install root dependencies
run: npm ci
- name: Start server in the background
run: npm start &
- name: Install Cypress and run tests
uses: cypress-io/github-action@v6
with:
working-directory: cypress
browser: chrome
wait-on: 'http://localhost:3000'
config: baseUrl=http://localhost:3000
- uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-screenshots
path: cypress/screenshots
if-no-files-found: ignore