pawanamigo
pawanamigo

Reputation: 35

Unable to run testcafe tests on CI/CD gitlab but works fine locally on the runner

I am seeing an issue running testcafe tests on the gitlab runner. The tests runs fine locally on the gitlab runner, but when run off the CI/CD pipeline it fails. Below is my .yaml code -

test-e2e-windows:
  stage: test
  cache:
    <<: *global_cache
    policy: pull
  #needs: ['yarn-install']
  tags:
    - win32
  script:
    - yarn install
    - yarn run test:e2e

Below is the error I see -

$ yarn run test:e2e Running tests in:

Am I missing something here?

Upvotes: 0

Views: 531

Answers (1)

Artem B
Artem B

Reputation: 91

According to the "Requested device not found" error message, this issue is related to your application implementation:

I can assume that it tries to access some device on a virtual machine but fails due to the fact that this device does not exist. In my opinion, the best way to resolve this issue is to manually handle this error in your application. If my assumptions are wrong, please create a new GitHub issue using this template and share a minimal working example illustrating the issue.

Upvotes: 1

Related Questions