I've started a new project using create-nuxt-app command and selected Nightwatch as a testing framework.
Locally both Chrome and Geckodriver (firefox) works fine: Nightwatch launches and does OK tests.
But on Github Actions both Chrome and Geckodriver don't work.
Chrome throws this error:
Error: An error occurred while retrieving a new session: "unknown error: Chrome failed to start: exited abnormally."
Geckodriver throws this error:
Error: An error occurred while retrieving a new session: "Process unexpectedly closed with status 1"
What I've tried:
- Tried using either chrome or geckodriver.
- For chrome tried "--no-sandbox" without luck.
- For geckodriver tried "--headless" without luck.
- Tried different version for Chrome, like 77, 87, 88.
I've followed these instructions thoroughly. https://nightwatchjs.org/gettingstarted/browser-drivers-setup/ So I didn't forget to set appropriate ports for each setup and etc.
The setup is absolutely fresh, without any additional configs.