Fixing e2e test URL

This commit is contained in:
David Négrier 2020-06-01 16:39:34 +02:00
parent b652a986c8
commit 2d20302ab2

View File

@ -112,20 +112,20 @@ jobs:
uses: cypress-io/github-action@v1 uses: cypress-io/github-action@v1
if: ${{ env.GITHUB_REF_SLUG != 'master' }} if: ${{ env.GITHUB_REF_SLUG != 'master' }}
env: env:
CYPRESS_BASE_URL: https://${{ env.GITHUB_REF_SLUG }}.workadventure.test.thecodingmachine.com CYPRESS_BASE_URL: https://play.${{ env.GITHUB_REF_SLUG }}.workadventure.test.thecodingmachine.com
with: with:
env: host=${{ env.GITHUB_REF_SLUG }}.workadventure.test.thecodingmachine.com,port=80 env: host=play.${{ env.GITHUB_REF_SLUG }}.workadventure.test.thecodingmachine.com,port=80
spec: cypress/integration/spec.js spec: cypress/integration/spec.js
wait-on: https://${{ env.GITHUB_REF_SLUG }}.workadventure.test.thecodingmachine.com wait-on: https://play.${{ env.GITHUB_REF_SLUG }}.workadventure.test.thecodingmachine.com
working-directory: e2e working-directory: e2e
- name: Run Cypress tests in prod - name: Run Cypress tests in prod
uses: cypress-io/github-action@v1 uses: cypress-io/github-action@v1
if: ${{ env.GITHUB_REF_SLUG == 'master' }} if: ${{ env.GITHUB_REF_SLUG == 'master' }}
env: env:
CYPRESS_BASE_URL: https://workadventu.re CYPRESS_BASE_URL: https://play.workadventu.re
with: with:
env: host=workadventu.re env: host=play.workadventu.re
spec: cypress/integration/spec.js spec: cypress/integration/spec.js
wait-on: https://workadventu.re wait-on: https://workadventu.re
working-directory: e2e working-directory: e2e