This commit is contained in:
John McLear 2021-03-14 12:16:14 +00:00
parent b1fe9c1ef3
commit 83f08a6bc3

View file

@ -34,13 +34,16 @@ jobs:
- name: Run Etherpad & Tests
run: |
node src/node/server.js &
# check for initial connectivity
curl --connect-timeout 10 --max-time 20 --retry 5 --retry-delay 10 --retry-max-time 60 --retry-connrefused http://127.0.0.1:9001/p/test
cd src/tests/frontend
# build first
xvfb-run -a cypress run --spec cypress/integration/test.js --config-file cypress/cypress.json --config videosFolder=cypress/videos/build
# run collaboration tests
xvfb-run -a cypress run --spec cypress/integration/collaborate.js --config-file cypress/cypress.json --config videosFolder=cypress/videos/browser1 &
xvfb-run -a cypress run --spec cypress/integration/collaborate.js --config-file cypress/cypress.json --config videosFolder=cypress/videos/browser2 &
xvfb-run -a cypress run --spec cypress/integration/collaborate.js --config-file cypress/cypress.json --config videosFolder=cypress/videos/browser3 &
xvfb-run -a cypress run --spec cypress/integration/collaborate.js --config-file cypress/cypress.json --config videosFolder=cypress/videos/browser4
# We still to do a curl check above just to ensure Etherpad is responding before cypress starts
- name: Sleep for 30 seconds for videos to encode
uses: whatnick/wait-action@master