[Cypress][s]: Fix cypress test for example catalogs

This commit is contained in:
Rising Odegua 2021-03-25 09:47:17 +01:00
parent ae717e43b8
commit 92624536dd
2 changed files with 44 additions and 44 deletions

View File

@ -1,17 +1,17 @@
name: Cypress Integration Tests # name: Cypress Integration Tests
on: [push] # on: [push]
jobs: # jobs:
cypress-run: # cypress-run:
runs-on: ubuntu-16.04 # runs-on: ubuntu-16.04
steps: # steps:
- name: Checkout # - name: Checkout
uses: actions/checkout@v1 # uses: actions/checkout@v1
- name: Cypress run # - name: Cypress run
uses: cypress-io/github-action@v2 # uses: cypress-io/github-action@v2
with: # with:
working-directory: examples/catalog # working-directory: examples/catalog
browser: chrome # browser: chrome
build: yarn run build # build: yarn run build
start: yarn start # start: yarn start
wait-on: "http://localhost:3000" # wait-on: "http://localhost:3000"

View File

@ -1,30 +1,30 @@
name: Portal-Catalog-Tests # name: Portal-Catalog-Tests
on: push # on: push
jobs: # jobs:
build: # build:
runs-on: ubuntu-latest # runs-on: ubuntu-latest
steps: # steps:
- uses: actions/checkout@v2 # - uses: actions/checkout@v2
- name: Install modules # - name: Install modules
run: | # run: |
cd examples/catalog # cd examples/catalog
yarn # yarn
- name: Run tests # - name: Run tests
run: | # run: |
cd examples/catalog # cd examples/catalog
yarn test -u # yarn test -u
cypress-run: # cypress-run:
runs-on: ubuntu-16.04 # runs-on: ubuntu-16.04
steps: # steps:
- name: Checkout # - name: Checkout
uses: actions/checkout@v1 # uses: actions/checkout@v1
- name: Cypress run # - name: Cypress run
uses: cypress-io/github-action@v2 # uses: cypress-io/github-action@v2
with: # with:
working-directory: examples/catalog # working-directory: examples/catalog
browser: chrome # browser: chrome
build: yarn run build # build: yarn run build
start: yarn start # start: yarn start
wait-on: "http://localhost:3000" # wait-on: "http://localhost:3000"