Issue running testcafe with electron in a headless container Issue running testcafe with electron in a headless container docker docker

Issue running testcafe with electron in a headless container


This error means that you are trying to run the chrome:headless under the root account.  Try to add the "appArgs": "--no-sandbox" option into the .testcafe-electron-rc.json file. 

As an alternate way, you can add a non-root user into the container and switch to it before running tests: https://github.com/DevExpress/testcafe/blob/fc3fe6d527df9b72831133134fb800729f7d3741/docker/Dockerfile#L23