我想通过Jenkins在firefox浏览器中运行TestCafe(不是headless)。
我使用的是安装了chromium和firefox的docker容器。
当我尝试运行它时,它抛出一个错误
ERROR Unable to establish one or more of the specified browser connections. This can be caused by network issues or remote device failure.
steps
{
container('testcafe') {
sh 'npm install'
sh "npm run live-docker"
}
}
哪里
live-docker
在中提到
package.json
"live-docker":"testcafe 'firefox --no-sandbox' e2e/user.spec.js -r xunit:TEST-new_user.xmlâ
"live-docker":"testcafe firefox e2e/user.spec.js -r xunit:TEST-new_user.xmlâ