Raj
Raj

Reputation: 5

Gitlab CI End to End testing failing because of webdriver-manager is not recognized as an internal or external command

I am working on a nodejs project that has some End to End tests. The test are running fine on my local and it failing from my gitlab pipeline because of webdriver was not recognized.

I tried installing webdriver in couple of different ways like Protractor but not fixed my issues. Any help would be appriciated.

Here is my gitlab-ci.yml file

stages:

before_script:

build:

stage: build

script:

- npm run build

test:

stage: test

script:

- npm run test:e2e

only:

- master

Error from pipeline

webdriver-manager update --ignore_ssl --gecko false 'webdriver-manager' is not recognized as an internal or external command operable program or batch file. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] pree2e: webdriver-manager update --ignore_ssl --gecko false npm ERR! Exit status 1

Upvotes: 0

Views: 469

Answers (1)

Related Questions