无法在WSL上运行chrome e2e



WSL量角器e2e测试无法启动chrome,并抛出错误

E/launcher - unknown error: Chrome failed to start: exited abnormally.   (chrome not reachable)

打开dractor.conf.js

更新配置并添加"--无沙盒">chromeOptions.args

exports.config = {
capabilities: {
browserName: 'chrome',
chromeOptions: {
args: [
'--no-sandbox',// <= this argument here
],
},
},
}

最新更新