codeceptjs / codeceptjs/CodeceptJS

all tests fail before they even start "before each hook" failure

Open
#2,353 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
4.2k
Forks
757
Avg merge
2d 9h
Merged PRs (30d)
16

Description

last night all my tests were running fine. now all tests on all apps are failing. I get this error

`example --
user inserts text and html macro
:heavy_multiplication_x: "before each" hook: codeceptjs.before for "user inserts text and html macro" in 13ms
Error: Failed to launch the browser process!`

I have no idea what is causing this. I did some googling and all previous issues say that adding ` "args": ["--no-sandbox", "--disable-setuid-sandbox"]` to the config will solve this problem but I already had that in my config file. it's been in my config file for months now. not sure what changed between last night and tonight.
### Details

* CodeceptJS version: 1.3
* NodeJS Version: 14.0
* Operating System: Mac 10.15.4
* puppeteer - 1.20.0
* Configuration file:

```js
exports.config = {
tests: './tests/test_test.js',
output: './output/',
helpers: {
Puppeteer: {
url: 'http://localhost',
show: false,
chrome: {
"args": ["--no-sandbox", "--disable-setuid-sandbox"]
}
}
},
include: {
I: './steps_file.js',
login: './pages/login.js',
confluence: './pages/confluence.js',
editor: './pages/editor.js',
},
bootstrap: null,
mocha: {},
name: 'hmtl macro user tests'
};

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.