I was running some integration tests in a Ubuntu Virtual Machine when I get this error:
Google Chrome can not be run as root. Please start Google Chrome as normal user. If you need to run for development, rerun with the --no-sandbox flag.
To resolve this problem I edit the start configuration file.
$ vim $(which google-chrome)
I add the “–no-sandbox” parameter in the “exec” command (starts with two dashes).
Then I save the file and rerun the integration tests.