Skip to content

Commit

Permalink
ci(e2e): update e2e tests to work with latest cypress utils
Browse files Browse the repository at this point in the history
  • Loading branch information
ismay committed Jun 8, 2021
1 parent c8c1b18 commit f785433
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 38 deletions.
31 changes: 11 additions & 20 deletions ci/dhis2-verify-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ jobs:
#e2e:
# runs-on: ubuntu-latest
# if: "!github.event.push.repository.fork && github.actor != 'dependabot[bot]'"
# needs: [cypress_id]
#
# strategy:
# fail-fast: false
# matrix:
# containers: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
# containers: [1, 2, 3, 4]
#
# steps:
# - name: Checkout
Expand All @@ -83,31 +83,22 @@ jobs:
# with:
# node-version: 12.x
#
# - uses: c-hive/gha-yarn-cache@v1
# - run: yarn install --frozen-lockfile
#
# - name: Install Cypress binary
# run: yarn cypress install
#
# - name: End-to-End tests
# uses: cypress-io/github-action@v2
# with:
# install: false
# # This should be a command that serves the app without opening a browser.
# # For example: `BROWSER=none d2-app-scripts start`
# start: yarn start:nobrowser
# wait-on: 'http://localhost:3000'
# wait-on-timeout: 300
# record: true
# parallel: true
# start: ${{ env.SERVER_START_CMD }}
# wait-on: ${{ env.SERVER_URL }}
# wait-on-timeout: 300
# cache-key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
# group: 'e2e'
# tag: ${{ github.event_name }}
# env:
# CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# COMMIT_INFO_MESSAGE: ${{ github.event.pull_request.title }}
# STORYBOOK_TESTING: true
# SERVER_START_CMD: 'yarn cy:server'
# SERVER_URL: 'http://localhost:5001'
# CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
# CYPRESS_dhis2BaseUrl: https://debug.dhis2.org/dev
# CYPRESS_dhis2ApiVersion: 37
# CYPRESS_networkMode: stub

publish:
runs-on: ubuntu-latest
Expand Down
28 changes: 10 additions & 18 deletions ci/dhis2-verify-lib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,10 @@ jobs:
#e2e:
# runs-on: ubuntu-latest
# if: "!github.event.push.repository.fork && github.actor != 'dependabot[bot]'"
# needs: [install, build, cypress_id]
# needs: [build]
#
# strategy:
# fail-fast: false
# matrix:
# containers: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
#
Expand All @@ -81,35 +82,26 @@ jobs:
# with:
# node-version: 12.x
#
# - uses: c-hive/gha-yarn-cache@v1
# - run: yarn install --frozen-lockfile
#
# - uses: actions/download-artifact@v2
# with:
# name: lib-build
#
# - name: Install Cypress binary
# run: yarn cypress install
#
# - name: End-to-End tests
# uses: cypress-io/github-action@v2
# with:
# install: false
# record: true
# parallel: true
# start: ${{ env.SERVER_START_CMD }}
# wait-on: ${{ env.SERVER_URL }}
# # This should be a command that starts the server to test against,
# # without opening a browser.
# start: yarn start:nobrowser
# wait-on: 'http://localhost:3000'
# wait-on-timeout: 300
# cache-key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
# group: 'e2e'
# tag: ${{ github.event_name }}
# env:
# CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# COMMIT_INFO_MESSAGE: ${{ github.event.pull_request.title }}
# STORYBOOK_TESTING: true
# SERVER_START_CMD: 'yarn cy:server'
# SERVER_URL: 'http://localhost:5001'
# CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
# CYPRESS_dhis2BaseUrl: https://debug.dhis2.org/dev
# CYPRESS_dhis2ApiVersion: 37
# CYPRESS_networkMode: stub

publish:
runs-on: ubuntu-latest
Expand Down

0 comments on commit f785433

Please sign in to comment.