我有一个Node 8,Angular 6应用程序,我将使用Bluemix Pipeline进行部署。在管道中,我已经为后端和前端设置了Mocha测试。我现在想编写e2e测试,但我无法弄清楚如何在运行Ubuntu 14的测试阶段安装浏览器。我得到的最接近的是:
wget https://dl.google.com/linux/direct/google-chrome-
stable_current_amd64.deb
ar -x ./google-chrome*.deb
tar xf data.tar.xz
export CHROME_BIN=usr/bin/google-chrome-stable
但是我收到了以下错误:
15 06 2018 16:56:41.566:WARN [launcher]: Chrome have not captured in 60000 ms, killing.
15 06 2018 16:56:43.569:WARN [launcher]: Chrome was not killed in 2000 ms, sending SIGKILL.
15 06 2018 16:56:45.572:WARN [launcher]: Chrome was not killed by SIGKILL in 2000 ms, continuing.