Skip to content

Commit

Permalink
Wait for server to respond before running E2E tests
Browse files Browse the repository at this point in the history
  • Loading branch information
axelboc committed Jul 26, 2023
1 parent 84ee621 commit a126166
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,12 @@ jobs:
env:
DISABLE_ESLINT_PLUGIN: true

- name: Start MXCuBE server
run: |
mxcubeweb-server -r ./test/HardwareObjectsMockup.xml/ --static-folder ./ui/build/ -L debug &
- name: Run Cypress
uses: cypress-io/github-action@v5
with:
working-directory: ui
start: mxcubeweb-server -r ./test/HardwareObjectsMockup.xml/ --static-folder ./ui/build/ -L debug
wait-on: "http://localhost:8081"

- uses: actions/upload-artifact@v3
if: failure()
Expand Down
2 changes: 1 addition & 1 deletion ui/cypress.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const { defineConfig } = require('cypress');

module.exports = defineConfig({
e2e: {
baseUrl: 'http://127.0.0.1:8081',
baseUrl: 'http://localhost:8081',
supportFile: 'cypress/support.js',
},
screenshotsFolder: 'cypress/debug',
Expand Down

0 comments on commit a126166

Please sign in to comment.