Quick fix: if you want to push the job to completion, amend the e2e.sh
file to install cypress in the container along with its dependency:
# new e2e.sh
cd cypressgit/
apt install -y libgbm1
npx cypress install
npm run testHeadless
It will work, however, it will reinstall cypress every time you run the container. So…
Proper fix:
- Create a docker container from
ddubson/cypress-e2e
; installcypress
andlibgbm1
on it and publish it to docker. - Update the
repository
intest.yml
to your freshly published container handle in dockerhub. - Re-run the
test
and profit!
CLICK HERE to find out more related problems solutions.