question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[πŸ› Bug]: npm run test fails when creating WebdriverIO development environment on Mac

See original GitHub issue

Have you read the Contributing Guidelines on issues?

WebdriverIO Version

latest

Node.js Version

18.7.0

Mode

WDIO Testrunner

Which capabilities are you using?

No response

What happened?

I set up the project using the instructions from the Contributing Guidelines here and one of the tests failed.

Fork https://github.com/webdriverio/webdriverio.git with GitHub UI
git clone git@github.com:<your-username>/webdriverio.git
cd webdriverio
npm i
npm run setup-full
npm run test

What is your expected behavior?

All the tests pass.

How to reproduce the bug.

Fork https://github.com/webdriverio/webdriverio.git with GitHub UI Then follow the steps below:

git clone git@github.com:<your-username>/webdriverio.git
cd webdriverio
npm i
npm run setup-full
npm run test

Relevant log output

> test
> run-s test:eslint test:typings test:unit test:smoke> test:eslint
> eslint --cache packages examples scripts tests> test:typings
> run-s test:typings:*> test:typings:setup
> node tests/typings/setup && npm i --no-save tsdchanged 15 packages, and audited 1210 packages in 5s

181 packages are looking for funding
  run `npm fund` for details

2 critical severity vulnerabilities

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.

> test:typings:test
> npm run ts && npm run clean:tests && node tests/typings/setup --ts=3.9 && npm run ts && npm run clean:tests> ts
> run-p ts:*> ts:webdriver
> cd tests/typings/webdriver && npx tsc --skipLibCheck> ts:devtools
> cd tests/typings/devtools && npx tsc --skipLibCheck> ts:jasmine
> cd tests/typings/jasmine && npx tsc --skipLibCheck> ts:webdriverio
> cd tests/typings/webdriverio && npx tsc --skipLibCheck> ts:mocha
> cd tests/typings/mocha && npx tsc --skipLibCheck> ts:cucumber
> cd tests/typings/cucumber && npx tsc --skipLibCheck> clean:tests
> rimraf tests/typings/**/node_modules tests/typings/**/dist ./coverage> ts
> run-p ts:*> ts:webdriver
> cd tests/typings/webdriver && npx tsc --skipLibCheck> ts:devtools
> cd tests/typings/devtools && npx tsc --skipLibCheck> ts:webdriverio
> cd tests/typings/webdriverio && npx tsc --skipLibCheck> ts:jasmine
> cd tests/typings/jasmine && npx tsc --skipLibCheck> ts:mocha
> cd tests/typings/mocha && npx tsc --skipLibCheck> ts:cucumber
> cd tests/typings/cucumber && npx tsc --skipLibCheck> clean:tests
> rimraf tests/typings/**/node_modules tests/typings/**/dist ./coverage> test:typings:recover
> rimraf ./node_modules/.bin/tsc && ln -s ../typescript/bin/tsc node_modules/.bin && npx rimraf @tsd/typescript> test:unit
> vitest DEV  v0.24.3 /<FULL_PROJECT_PATH>/webdriverio
      Coverage enabled with c8

 ❯ packages/wdio-config/tests/configparser.test.ts  (62 tests | 1 failed) 179ms
   ❯ packages/wdio-config/tests/configparser.test.ts > ConfigParser > addService > should only add functions
     β†’ [vite-node] Failed to load /<FULL_PROJECT_PATH>/webdriverio/packages/wdio-config/tests/__fixtures__/wdio.conf.ts
stdout | unknown test
2022-10-29T01:24:51.045Z INFO webdriver: Initiate new session using the WebDriver protocol

stdout | unknown test
2022-10-29T01:24:51.066Z INFO webdriver: [POST] http://localhost:4444/session
2022-10-29T01:24:51.066Z INFO webdriver: DATA {
  capabilities: { alwaysMatch: { browserName: 'foobar' }, firstMatch: [ {} ] },
  desiredCapabilities: { browserName: 'foobar' }
}

 βœ“ packages/wdio-local-runner/tests/localRunner.test.ts  (6 tests) 2025ms
 βœ“ packages/webdriverio/tests/commands/element/waitForDisplayed.test.ts  (7 tests) 2087ms
 βœ“ packages/devtools/tests/devtoolsdriver.test.ts  (20 tests) 1363ms
 βœ“ packages/webdriverio/tests/commands/element/waitForClickable.test.ts  (7 tests) 3090ms
 βœ“ packages/wdio-repl/tests/repl.test.ts  (13 tests) 841ms
 βœ“ packages/wdio-shared-store-service/tests/client.test.ts  (6 tests) 612ms
 βœ“ packages/webdriverio/tests/commands/element/waitForEnabled.test.ts  (7 tests) 1054ms
 βœ“ packages/wdio-local-runner/tests/run.test.ts  (7 tests | 1 skipped) 337ms
 βœ“ packages/webdriverio/tests/commands/element/dragAndDrop.test.ts  (8 tests) 399ms
 βœ“ packages/devtools/tests/utils.test.ts  (33 tests) 249ms
 βœ“ packages/webdriverio/tests/addCommand.test.ts  (17 tests) 167ms
 βœ“ packages/wdio-runner/tests/reporter.test.ts  (14 tests) 319ms
 βœ“ packages/webdriverio/tests/commands/browser/waitUntil.test.ts  (11 tests) 7171ms
[0-3] β€Ί  βœ“ packages/wdio-local-runner/tests/worker.test.ts  (9 tests) 221ms
 βœ“ packages/wdio-sauce-service/tests/launcher.test.ts  (17 tests) 227ms
 βœ“ packages/wdio-allure-reporter/tests/suite.test.ts  (45 tests) 260ms
 βœ“ packages/webdriverio/tests/commands/browser/newWindow.test.ts  (4 tests) 247ms
 βœ“ packages/webdriverio/tests/overwriteCommand.test.ts  (10 tests) 183ms
 βœ“ packages/webdriverio/tests/commands/browser/switchWindow.test.ts  (5 tests) 39ms
 βœ“ packages/webdriverio/tests/commands/element/isDisplayed.test.ts  (11 tests) 174ms
 βœ“ packages/webdriverio/tests/commands/browser/$.test.ts  (4 tests) 91ms
stdout | packages/webdriverio/tests/commands/browser/debug.test.ts > debug command > standalone mode > should start wdio repl if in standalone mode
some intro from mock

 βœ“ packages/webdriverio/tests/commands/browser/debug.test.ts  (5 tests) 136ms
 βœ“ packages/webdriverio/tests/utils/refetchElement.test.ts  (9 tests) 104ms
 βœ“ packages/wdio-cli/tests/utils.test.ts  (51 tests) 180ms
 βœ“ packages/webdriverio/tests/commands/element/click.test.ts  (15 tests) 122ms
 βœ“ packages/webdriverio/tests/commands/element/moveTo.test.ts  (6 tests) 72ms
 βœ“ packages/wdio-browserstack-service/tests/launcher.test.ts  (36 tests) 142ms
 βœ“ packages/wdio-allure-reporter/tests/cucumber.suite.test.ts  (35 tests) 217ms
 βœ“ packages/webdriverio/tests/commands/element/reactElement.test.ts  (3 tests) 103ms
 βœ“ packages/webdriverio/tests/commands/element/clearValue.test.ts  (1 test) 46ms
 βœ“ packages/webdriverio/tests/commands/browser/customSelectors.test.ts  (4 tests) 74ms
 βœ“ packages/wdio-devtools-service/tests/service.test.ts  (17 tests) 123ms
 βœ“ packages/wdio-crossbrowsertesting-service/tests/launcher.test.ts  (6 tests) 115ms
 βœ“ packages/wdio-testingbot-service/tests/launcher.test.ts  (8 tests) 124ms
 βœ“ packages/webdriverio/tests/commands/element/isEqual.test.ts  (6 tests) 108ms
 βœ“ packages/webdriverio/tests/middleware.test.ts  (19 tests) 151ms
 βœ“ packages/webdriverio/tests/commands/element/customSelectors.test.ts  (5 tests) 126ms
 βœ“ packages/webdriverio/tests/commands/element/nextElement.test.ts  (2 tests) 44ms
 βœ“ packages/webdriverio/tests/commands/browser/customSelector.test.ts  (4 tests) 61ms
 βœ“ packages/webdriverio/tests/commands/browser/getCookies.test.ts  (5 tests) 30ms
 βœ“ packages/webdriverio/tests/multiremote.test.ts  (6 tests) 128ms
stdout | packages/webdriverio/tests/commands/browser/$$.test.ts > elements > it can create an element array based on single elements
[ 'some-elem-123', 'foobar' ]

 βœ“ packages/webdriverio/tests/commands/browser/$$.test.ts  (4 tests) 156ms
 βœ“ packages/webdriverio/tests/commands/element/getComputedLabel.test.ts  (1 test) 30ms
 βœ“ packages/webdriverio/tests/commands/element/selectByVisibleText.test.ts  (7 tests) 54ms
stdout | packages/wdio-cli/tests/commands/config.test.ts > should create config file

=========================
WDIO Configuration Helper
=========================Installing wdio packages:
- @wdio/local-runner
- @wdio/mocha-framework
- @wdio/spec-reporter
- wdio-wait-for
- @wdio/sauce-service

Packages installed successfully, creating configuration file...

Configuration file was created successfully!
To run your tests, execute:
$ npx wdio run wdio.conf.jsstdout | packages/wdio-cli/tests/commands/config.test.ts > should throw error if creating config file fails

=========================
WDIO Configuration Helper
=========================Installing wdio packages:
- @wdio/local-runner
- @wdio/mocha-framework
- @wdio/spec-reporter
- wdio-wait-for
- @wdio/sauce-service

Packages installed successfully, creating configuration file...

stdout | packages/wdio-cli/tests/commands/config.test.ts > it should install with yarn when flag is passed

=========================
WDIO Configuration Helper
=========================Installing wdio packages:
- @wdio/local-runner
- @wdio/mocha-framework
- @wdio/spec-reporter
- wdio-wait-for
- @wdio/sauce-service

Packages installed successfully, creating configuration file...

Configuration file was created successfully!
To run your tests, execute:
$ npx wdio run wdio.conf.jsstdout | packages/wdio-cli/tests/commands/config.test.ts > install compliant NPM tag packages > it should install tagged version if cli is tagged with beta

=========================
WDIO Configuration Helper
=========================Installing wdio packages:
- @wdio/local-runner
- @wdio/mocha-framework
- @wdio/crossbrowsertesting-service
- wdio-lambdatest-service
- ts-node
- typescript

Packages installed successfully, creating configuration file...
To have TypeScript support please add the following packages to your "types" list:
{
  "compilerOptions": {
    "types": ["node", "@wdio/globals/types", "@wdio/mocha-framework", "expect-webdriverio", "@wdio/crossbrowsertesting-service"]
  }
}

For for information on TypeScript integration check out: https://webdriver.io/docs/typescriptConfiguration file was created successfully!
To run your tests, execute:
$ npx wdio run test/wdio.conf.tsstdout | packages/wdio-cli/tests/commands/config.test.ts > install compliant NPM tag packages > it should install tagged version if cli is tagged with next

=========================
WDIO Configuration Helper
=========================Installing wdio packages:
- @wdio/local-runner
- @wdio/mocha-framework
- @wdio/crossbrowsertesting-service
- wdio-lambdatest-service
- ts-node
- typescript

Packages installed successfully, creating configuration file...
To have TypeScript support please add the following packages to your "types" list:
{
  "compilerOptions": {
    "types": ["node", "@wdio/globals/types", "@wdio/mocha-framework", "expect-webdriverio", "@wdio/crossbrowsertesting-service"]
  }
}

For for information on TypeScript integration check out: https://webdriver.io/docs/typescriptConfiguration file was created successfully!
To run your tests, execute:
$ npx wdio run test/wdio.conf.tsstdout | packages/wdio-cli/tests/commands/config.test.ts > install compliant NPM tag packages > it should install tagged version if cli is tagged with latest

=========================
WDIO Configuration Helper
=========================Installing wdio packages:
- @wdio/local-runner
- @wdio/mocha-framework
- @wdio/crossbrowsertesting-service
- wdio-lambdatest-service
- ts-node
- typescript

Packages installed successfully, creating configuration file...
To have TypeScript support please add the following packages to your "types" list:
{
  "compilerOptions": {
    "types": ["node", "@wdio/globals/types", "@wdio/mocha-framework", "expect-webdriverio", "@wdio/crossbrowsertesting-service"]
  }
}

For for information on TypeScript integration check out: https://webdriver.io/docs/typescriptConfiguration file was created successfully!
To run your tests, execute:
$ npx wdio run test/wdio.conf.tsstdout | packages/wdio-cli/tests/commands/config.test.ts > install compliant NPM tag packages > it should not install tagged version if cli is tagged with a specific version

=========================
WDIO Configuration Helper
=========================Installing wdio packages:
- @wdio/local-runner
- @wdio/mocha-framework
- @wdio/crossbrowsertesting-service
- wdio-lambdatest-service
- ts-node
- typescript

Packages installed successfully, creating configuration file...
To have TypeScript support please add the following packages to your "types" list:
{
  "compilerOptions": {
    "types": ["node", "@wdio/globals/types", "@wdio/mocha-framework", "expect-webdriverio", "@wdio/crossbrowsertesting-service"]
  }
}

For for information on TypeScript integration check out: https://webdriver.io/docs/typescriptConfiguration file was created successfully!
To run your tests, execute:
$ npx wdio run test/wdio.conf.tsstdout | packages/wdio-cli/tests/commands/config.test.ts > prints TypeScript setup message

=========================
WDIO Configuration Helper
=========================Installing wdio packages:
- @wdio/local-runner
- @wdio/mocha-framework
- @wdio/crossbrowsertesting-service
- wdio-lambdatest-service
- ts-node
- typescript

Packages installed successfully, creating configuration file...
To have TypeScript support please add the following packages to your "types" list:
{
  "compilerOptions": {
    "types": ["node", "@wdio/globals/types", "@wdio/mocha-framework", "expect-webdriverio", "@wdio/crossbrowsertesting-service"]
  }
}

For for information on TypeScript integration check out: https://webdriver.io/docs/typescriptConfiguration file was created successfully!
To run your tests, execute:
$ npx wdio run test/wdio.conf.tsstdout | packages/wdio-cli/tests/commands/config.test.ts > prints TypeScript setup message with ts-node installed

=========================
WDIO Configuration Helper
=========================Installing wdio packages:
- @wdio/local-runner
- @wdio/mocha-framework
- @wdio/crossbrowsertesting-service
- wdio-lambdatest-service
- ts-node
- typescript

Packages installed successfully, creating configuration file...
To have TypeScript support please add the following packages to your "types" list:
{
  "compilerOptions": {
    "types": ["node", "@wdio/globals/types", "@wdio/mocha-framework", "expect-webdriverio", "@wdio/crossbrowsertesting-service"]
  }
}

For for information on TypeScript integration check out: https://webdriver.io/docs/typescriptConfiguration file was created successfully!
To run your tests, execute:
$ npx wdio run test/wdio.conf.tsstdout | packages/wdio-cli/tests/commands/config.test.ts > should setup Babel if not existing

=========================
WDIO Configuration Helper
=========================Installing wdio packages:
- @wdio/local-runner
- @wdio/mocha-framework
- @wdio/crossbrowsertesting-service
- wdio-lambdatest-service
- @babel/register
- @babel/core
- @babel/preset-env

Packages installed successfully, creating configuration file...

Configuration file was created successfully!
To run your tests, execute:
$ npx wdio run wdio.conf.jsstdout | packages/wdio-cli/tests/commands/config.test.ts > should not install @babel/register if existing

=========================
WDIO Configuration Helper
=========================Installing wdio packages:
- @wdio/local-runner
- @wdio/mocha-framework
- @wdio/crossbrowsertesting-service
- wdio-lambdatest-service
- @babel/register
- @babel/core
- @babel/preset-env

Packages installed successfully, creating configuration file...

Configuration file was created successfully!
To run your tests, execute:
$ npx wdio run wdio.conf.jsstdout | packages/wdio-cli/tests/commands/config.test.ts > should not install npm packages when npmInstall is false

=========================
WDIO Configuration Helper
=========================To install dependencies, execute:
npm i --save-dev @wdio/local-runner @wdio/mocha-framework @wdio/spec-reporter wdio-wait-for @wdio/sauce-serviceConfiguration file was created successfully!
To run your tests, execute:
$ npx wdio run wdio.conf.js βœ“ packages/webdriverio/tests/index.test.ts  (9 tests) 26ms
 βœ“ packages/wdio-cli/tests/commands/config.test.ts  (17 tests) 44ms
 βœ“ packages/webdriverio/tests/commands/element/isEnabled.test.ts  (1 test) 36ms
 βœ“ packages/wdio-mocha-framework/tests/adapter.test.ts  (34 tests) 37ms
 βœ“ packages/webdriverio/tests/commands/browser/deleteCookies.test.ts  (5 tests) 46ms
stdout | unknown test
2022-10-29T01:25:18.789Z INFO webdriver: Initiate new session using the WebDriver protocol

stdout | unknown test
2022-10-29T01:25:18.819Z INFO webdriver: [POST] http://localhost:4444/session
2022-10-29T01:25:18.820Z INFO webdriver: DATA {
  capabilities: { alwaysMatch: { browserName: 'foobar' }, firstMatch: [ {} ] },
  desiredCapabilities: { browserName: 'foobar' }
}

 βœ“ packages/webdriverio/tests/commands/browser/call.test.ts  (3 tests) 52ms
 βœ“ packages/webdriverio/tests/commands/browser/reactElement.test.ts  (3 tests) 41ms
 βœ“ packages/webdriverio/tests/commands/element/$$.test.ts  (3 tests) 89ms
 βœ“ packages/webdriverio/tests/commands/element/getLocation.test.ts  (3 tests) 71ms
 βœ“ packages/webdriver/tests/index.test.ts  (20 tests) 105ms
 βœ“ packages/webdriverio/tests/commands/browser/keys.test.ts  (4 tests) 57ms
 βœ“ packages/webdriver/tests/utils.test.ts  (28 tests) 103ms
 βœ“ packages/webdriverio/tests/commands/element/getValue.test.ts  (3 tests) 70ms
 βœ“ packages/webdriverio/tests/commands/element/scrollIntoView.test.ts  (3 tests) 75ms
 βœ“ packages/webdriverio/tests/commands/element/touchAction.test.ts  (17 tests) 116ms
 βœ“ packages/webdriverio/tests/commands/browser/setTimeout.test.ts  (3 tests) 33ms
 βœ“ packages/webdriverio/tests/commands/element/$.test.ts  (4 tests) 123ms
 βœ“ packages/wdio-devtools-service/tests/handler/network.test.ts  (1 test) 4ms
 βœ“ packages/webdriverio/tests/commands/element/parentElement.test.ts  (2 tests) 109ms
 βœ“ packages/wdio-jasmine-framework/tests/adapter.test.ts  (25 tests) 54ms
 βœ“ packages/webdriverio/tests/utils.test.ts  (48 tests) 64ms
 βœ“ packages/webdriverio/tests/commands/element/getProperty.test.ts  (2 tests) 212ms
 βœ“ packages/wdio-config/tests/FileSystemPathService.test.ts  (11 tests) 110ms
 βœ“ packages/webdriverio/tests/commands/browser/saveRecordingScreen.test.ts  (2 tests) 91ms
 βœ“ packages/webdriverio/tests/commands/element/reactElements.test.ts  (3 tests) 68ms
 βœ“ packages/webdriverio/tests/commands/element/selectByIndex.test.ts  (5 tests) 105ms
 βœ“ packages/wdio-shared-store-service/tests/server.test.ts  (5 tests) 69ms
 βœ“ packages/webdriverio/tests/commands/element/isExisting.test.ts  (3 tests) 40ms
 βœ“ packages/webdriverio/tests/commands/element/doubleClick.test.ts  (2 tests) 124ms
 βœ“ packages/webdriverio/tests/commands/element/customSelector.test.ts  (6 tests) 226ms
 βœ“ packages/wdio-spec-reporter/tests/index.test.ts  (84 tests) 103ms
 βœ“ packages/webdriverio/tests/findStrategy.test.ts  (63 tests) 46ms
 βœ“ packages/webdriverio/tests/commands/element/saveScreenshot.test.ts  (2 tests) 45ms
 βœ“ packages/webdriverio/tests/commands/element/getSize.test.ts  (3 tests) 60ms
 βœ“ packages/webdriverio/tests/commands/element/previousElement.test.ts  (2 tests) 39ms
 βœ“ packages/webdriverio/tests/commands/element/getText.test.ts  (1 test) 54ms
 βœ“ packages/webdriverio/tests/commands/element/isClickable.test.ts  (3 tests) 67ms
 βœ“ packages/webdriverio/tests/commands/element/addValue.test.ts  (7 tests) 93ms
 βœ“ packages/wdio-cli/tests/interface.test.ts  (47 tests) 81ms
 βœ“ packages/wdio-cli/tests/launcher.test.ts  (42 tests) 68ms
 βœ“ packages/webdriverio/tests/commands/browser/actions.test.ts  (1 test) 26ms
 βœ“ packages/webdriverio/tests/protocol-stub.test.ts  (5 tests) 10ms
 βœ“ packages/webdriverio/tests/commands/browser/saveScreenshot.test.ts  (2 tests) 35ms
 βœ“ packages/webdriverio/tests/commands/browser/setWindowSize.test.ts  (4 tests) 28ms
 βœ“ packages/wdio-junit-reporter/tests/reporter.test.ts  (32 tests) 42ms
 βœ“ packages/webdriverio/tests/commands/element/setValue.test.ts  (1 test) 42ms
stdout | packages/webdriverio/tests/commands/element/shadow$.test.ts > shadow$ > should call $ with a function selector
2022-10-29T01:25:39.280Z INFO webdriver: Initiate new session using the WebDriver protocol

stdout | packages/webdriverio/tests/commands/element/shadow$.test.ts > shadow$ > should call $ with a function selector
2022-10-29T01:25:39.292Z INFO webdriver: [POST] http://localhost:4444/session
2022-10-29T01:25:39.292Z INFO webdriver: DATA {
  capabilities: { alwaysMatch: { browserName: 'foobar' }, firstMatch: [ {} ] },
  desiredCapabilities: { browserName: 'foobar' }
}
2022-10-29T01:25:39.313Z INFO webdriver: COMMAND findElement("css selector", "#foo")
2022-10-29T01:25:39.313Z INFO webdriver: [POST] http://localhost:4444/session/foobar-123/element
2022-10-29T01:25:39.313Z INFO webdriver: DATA { using: 'css selector', value: '#foo' }
2022-10-29T01:25:39.314Z INFO webdriver: RESULT { 'element-6066-11e4-a52e-4f735466cecf': 'some-elem-123' }

 βœ“ packages/webdriverio/tests/commands/element/shadow$.test.ts  (1 test) 54ms
 βœ“ packages/webdriverio/tests/commands/element/isDisplayedInViewport.test.ts  (2 tests) 46ms
 βœ“ packages/wdio-cucumber-framework/tests/adapter.test.ts  (14 tests | 3 skipped) 20ms
 βœ“ packages/webdriverio/tests/commands/browser/reloadSession.test.ts  (7 tests) 58ms
 βœ“ packages/webdriverio/tests/commands/browser/url.test.ts  (4 tests) 86ms
 βœ“ packages/webdriverio/tests/commands/element/getTagName.test.ts  (1 test) 54ms
 βœ“ packages/devtools/tests/index.test.ts  (4 tests) 46ms
 βœ“ packages/webdriverio/tests/commands/browser/action.test.ts  (5 tests) 100ms
 βœ“ packages/webdriverio/tests/commands/element/isFocused.test.ts  (1 test) 34ms
 βœ“ packages/webdriverio/tests/commands/browser/reactElements.test.ts  (3 tests) 59ms
 βœ“ packages/webdriverio/tests/commands/browser/uploadFile.test.ts  (5 tests) 40ms
 βœ“ packages/webdriverio/tests/commands/browser/execute.test.ts  (3 tests) 29ms
 βœ“ packages/webdriverio/tests/commands/browser/mockRestoreAll.test.ts  (1 test) 21ms
 βœ“ packages/webdriverio/tests/commands/browser/touchAction.test.ts  (7 tests) 50ms
stdout | unknown test
2022-10-29T01:25:46.758Z INFO webdriver: Initiate new session using the WebDriver protocol

stdout | unknown test
2022-10-29T01:25:46.770Z INFO webdriver: [POST] http://localhost:4444/session
2022-10-29T01:25:46.770Z INFO webdriver: DATA {
  capabilities: { alwaysMatch: { browserName: 'foobar' }, firstMatch: [ {} ] },
  desiredCapabilities: { browserName: 'foobar' }
}

 βœ“ packages/webdriverio/tests/commands/element/getAttribute.test.ts  (1 test) 25ms
 βœ“ packages/webdriverio/tests/commands/browser/getPuppeteer.test.ts  (9 tests) 52ms
 βœ“ packages/devtools/tests/devtools.test.ts  (3 tests) 53ms
 βœ“ packages/webdriverio/tests/commands/element/getComputedRole.test.ts  (1 test) 30ms
 βœ“ packages/webdriverio/tests/commands/element/waitForExist.test.ts  (2 tests) 53ms
 βœ“ packages/webdriverio/tests/commands/element.test.ts  (2 tests) 44ms
 βœ“ packages/webdriverio/tests/commands/element/selectByAttribute.test.ts  (3 tests) 37ms
 βœ“ packages/webdriverio/tests/commands/element/waitUntil.test.ts  (1 test) 45ms
 βœ“ packages/webdriverio/tests/commands/browser/mock.test.ts  (3 tests) 29ms
 βœ“ packages/wdio-allure-reporter/tests/allureFeatures.test.ts  (47 tests) 142ms
 βœ“ packages/wdio-reporter/tests/reporter.listeners.test.ts  (35 tests) 62ms
 βœ“ packages/webdriverio/tests/commands/element/getCSSProperty.test.ts  (2 tests) 37ms
 βœ“ packages/wdio-sauce-service/tests/service.test.ts  (53 tests) 52ms
 βœ“ packages/webdriverio/tests/commands/element/isSelected.test.ts  (1 test) 66ms
 βœ“ packages/webdriverio/tests/commands/browser/pause.test.ts  (2 tests) 21ms
 βœ“ packages/webdriverio/tests/commands/browser/getWindowSize.test.ts  (2 tests) 44ms
 βœ“ packages/webdriverio/tests/commands/browser/executeAsync.test.ts  (3 tests) 32ms
 βœ“ packages/webdriverio/tests/utils/interception/webdriver.test.ts  (12 tests) 15ms
 βœ“ packages/wdio-runner/tests/index.test.ts  (26 tests) 44ms
 βœ“ packages/webdriver/tests/request.test.ts  (36 tests) 56ms
 βœ“ packages/webdriverio/tests/commands/browser/throttle.test.ts  (4 tests) 42ms
 βœ“ packages/webdriverio/tests/module.test.ts  (12 tests | 1 skipped) 49ms
 βœ“ packages/devtools/tests/launcher.test.ts  (20 tests) 26ms
 βœ“ packages/webdriver/tests/request-browser.test.ts  (35 tests) 43ms
 βœ“ packages/wdio-cucumber-framework/tests/reporter.test.ts  (22 tests) 26ms
foobar βœ“ packages/webdriverio/tests/commands/browser/mockClearAll.test.ts  (1 test) 24ms
 βœ“ packages/wdio-mocha-framework/tests/utils.test.ts  (2 tests) 14ms
 βœ“ packages/wdio-local-runner/tests/repl.test.ts  (6 tests) 17ms
 βœ“ packages/webdriverio/tests/commands/browser/savePDF.test.ts  (2 tests) 37ms
 βœ“ packages/wdio-devtools-service/tests/gatherer/devtools.test.ts  (1 test) 5ms
 βœ“ packages/wdio-shared-store-service/tests/index.test.ts  (2 tests) 4ms
 βœ“ packages/wdio-utils/tests/shim-async.test.ts  (19 tests) 33ms
 βœ“ packages/webdriverio/tests/commands/browser/scroll.test.ts  (2 tests) 44ms
 βœ“ packages/webdriverio/tests/commands/element/getHTML.test.ts  (1 test) 23ms
 βœ“ packages/wdio-devtools-service/tests/gatherer/trace.test.ts  (18 tests | 1 skipped) 35ms
stdout | packages/wdio-logger/tests/node.test.ts > wdio-logger node > logFile > should be possible to add to cache
gray 2022-10-29T01:26:01.083Z cyanBright INFO whiteBright test-logFile1: foo
gray 2022-10-29T01:26:01.083Z cyanBright INFO whiteBright test-logFile1: bar

stdout | packages/wdio-logger/tests/node.test.ts > wdio-logger node > logFile > should be possible to create and write to logFile, with cache
gray 2022-10-29T01:26:01.083Z cyanBright INFO whiteBright test-logFile3: foo

 βœ“ packages/wdio-browserstack-service/tests/service.test.ts  (39 tests) 32ms
 βœ“ packages/webdriver/tests/bidi.test.ts  (6 tests) 13ms
 βœ“ packages/wdio-logger/tests/node.test.ts  (26 tests) 23ms
 βœ“ packages/webdriverio/tests/utils/interception/devtools.test.ts  (32 tests) 153ms
 βœ“ packages/webdriverio/tests/scripts/isElementClickable.test.ts  (10 tests) 12ms
 βœ“ packages/wdio-reporter/tests/stats/runnable.test.ts  (3 tests) 7ms
 βœ“ packages/wdio-appium-service/tests/launcher.test.ts  (19 tests) 60ms
 βœ“ packages/wdio-sauce-service/tests/utils.test.ts  (23 tests) 9ms
 βœ“ packages/wdio-local-runner/tests/replQueue.test.ts  (3 tests | 1 skipped) 4ms
 βœ“ packages/webdriverio/tests/commands/browser/setCookies.test.ts  (5 tests) 26ms
 βœ“ packages/webdriverio/tests/scripts/isElementInViewport.test.ts  (6 tests) 5ms
 βœ“ packages/wdio-utils/tests/utils.test.ts  (23 tests) 19ms
 βœ“ packages/wdio-allure-reporter/tests/runtime.test.ts  (37 tests) 24ms
stdout | packages/wdio-cli/tests/commands/install.test.ts > Command: install > should log out when an unknown installation type is passed
Type foobar is not supported.

stdout | packages/wdio-cli/tests/commands/install.test.ts > Command: install > should log out when unknown package name is used
foobar is not a supported service.

stdout | packages/wdio-cli/tests/commands/install.test.ts > Command: install > should verify if configuration already has desired installation
The service chromedriver is already part of your configuration.

stdout | packages/wdio-cli/tests/commands/install.test.ts > Command: install > should correctly install packages

======= 
Please change path to / in your wdio.conf.js: 
path: '/' 
=======

Installing "wdio-chromedriver-service".
Package "wdio-chromedriver-service" installed successfully.
Your wdio.conf.js file has been updated.

stdout | packages/wdio-cli/tests/commands/install.test.ts > Command: install > should fail if config could not be updated

======= 
Please change path to / in your wdio.conf.js: 
path: '/' 
=======

Installing "wdio-chromedriver-service".
Package "wdio-chromedriver-service" installed successfully.

stdout | packages/wdio-cli/tests/commands/install.test.ts > Command: install > allows for custom config location

======= 
Please change path to / in your wdio.conf.js: 
path: '/' 
=======

Installing "wdio-chromedriver-service".
Package "wdio-chromedriver-service" installed successfully.
Your wdio.conf.js file has been updated.

stdout | packages/wdio-cli/tests/commands/install.test.ts > Command: install > should exit if there is an error while installing

======= 
Please change path to / in your wdio.conf.js: 
path: '/' 
=======

Installing "wdio-chromedriver-service".

stderr | packages/wdio-cli/tests/commands/install.test.ts > Command: install > should exit if there is an error while installing
 βœ“ packages/wdio-cli/tests/commands/install.test.ts  (9 tests) 14ms
 βœ“ packages/webdriver/tests/command.test.ts  (22 tests) 29ms
 βœ“ packages/wdio-reporter/tests/stats/test.test.ts  (12 tests) 16ms
 βœ“ packages/wdio-cli/tests/commands/run.test.ts  (8 tests) 13ms
 βœ“ packages/wdio-local-runner/tests/transformStream.test.ts  (3 tests) 10ms
 βœ“ packages/wdio-reporter/tests/reporter.test.ts  (7 tests) 17ms
 βœ“ packages/wdio-reporter/tests/stats/runner.test.ts  (1 test) 3ms
 βœ“ packages/wdio-cucumber-framework/tests/eventListener.test.ts  (2 tests) 6ms
 βœ“ packages/wdio-allure-reporter/tests/utils.test.ts  (19 tests) 15ms
 βœ“ packages/wdio-globals/tests/index.test.ts  (5 tests) 7ms
 βœ“ packages/wdio-local-runner/tests/stdStream.test.ts  (2 tests) 13ms
 βœ“ packages/webdriverio/tests/scripts/isFocused.test.ts  (1 test) 6ms
 βœ“ packages/wdio-devtools-service/tests/gatherer/coverage.test.ts  (11 tests) 32ms
 βœ“ packages/webdriverio/tests/commands/browser.test.ts  (1 test) 4ms
 βœ“ packages/wdio-sumologic-reporter/tests/reporter.test.ts  (9 tests) 17ms
 βœ“ packages/wdio-devtools-service/tests/utils.test.ts  (17 tests) 17ms
 βœ“ packages/wdio-runner/tests/utils.test.ts  (13 tests) 17ms
 βœ“ packages/wdio-devtools-service/tests/auditor.test.ts  (10 tests) 14ms
 βœ“ packages/wdio-crossbrowsertesting-service/tests/service.test.ts  (25 tests) 18ms
 βœ“ packages/wdio-reporter/tests/stats/hook.test.ts  (4 tests) 13ms
 βœ“ packages/wdio-reporter/tests/stats/suite.test.ts  (1 test) 13ms
 βœ“ packages/wdio-cli/tests/watcher.test.ts  (12 tests) 30ms
 βœ“ packages/wdio-firefox-profile-service/tests/launcher.test.ts  (12 tests) 14ms
 βœ“ packages/wdio-shared-store-service/tests/service.test.ts  (2 tests) 6ms
 βœ“ packages/wdio-dot-reporter/tests/index.test.ts  (3 tests) 10ms
 βœ“ packages/wdio-testingbot-service/tests/service.test.ts  (27 tests) 18ms
 βœ“ packages/wdio-allure-reporter/tests/constants.test.ts  (3 tests) 7ms
 βœ“ packages/webdriverio/tests/utils/interception/interception.test.ts  (3 tests) 13ms
 βœ“ packages/wdio-utils/tests/shim.test.ts  (2 tests) 7ms
 βœ“ packages/webdriverio/tests/utils/detectBackend.test.ts  (24 tests) 16ms
 βœ“ packages/wdio-config/tests/utils.test.ts  (14 tests) 10ms
 βœ“ packages/wdio-concise-reporter/tests/index.test.ts  (17 tests) 14ms
 βœ“ packages/devtools/tests/finder/finder.test.ts  (4 tests) 7ms
 βœ“ packages/wdio-local-runner/tests/utils.test.ts  (2 tests) 24ms
 βœ“ packages/wdio-reporter/tests/utils.test.ts  (5 tests) 5ms
 βœ“ packages/webdriverio/tests/scripts/newWindow.test.ts  (1 test) 7ms
 βœ“ packages/wdio-utils/tests/monad.test.ts  (12 tests) 13ms
 βœ“ packages/webdriverio/tests/utils/Timer.test.ts  (7 tests) 11ms
 βœ“ packages/wdio-jasmine-framework/tests/reporter.test.ts  (9 tests) 13ms
 βœ“ packages/wdio-runner/tests/index-initSession.test.ts  (3 tests) 21ms
 βœ“ packages/webdriver/tests/constants.test.ts  (3 tests) 4ms
 βœ“ packages/wdio-devtools-service/tests/gatherer/pwa.test.ts  (2 tests) 10ms
 βœ“ packages/wdio-cli/tests/commands/repl.test.ts  (4 tests) 12ms
 βœ“ packages/wdio-cli/tests/run.test.ts  (4 tests) 20ms
 βœ“ packages/wdio-cli/tests/index.test.ts  (5 tests | 1 skipped) 8ms
 βœ“ packages/wdio-allure-reporter/tests/compoundError.test.ts  (6 tests) 8ms
 βœ“ packages/wdio-devtools-service/tests/commands.test.ts  (10 tests) 12ms
 βœ“ packages/webdriverio/tests/scripts/resq.test.ts  (7 tests) 13ms
 βœ“ packages/wdio-shared-store-service/tests/launcher.test.ts  (1 test) 6ms
 βœ“ packages/wdio-utils/tests/test-framework/errorHandler.test.ts  (1 test) 6ms
 βœ“ packages/wdio-config/tests/validateConfig.test.ts  (6 tests) 8ms
 βœ“ packages/webdriverio/tests/utils/SevereServiceError.test.ts  (3 tests) 4ms
 βœ“ packages/wdio-cucumber-framework/tests/utils.test.ts  (16 tests) 28ms
 βœ“ packages/wdio-static-server-service/tests/launcher.test.ts  (5 tests) 8ms
 βœ“ packages/wdio-utils/tests/envDetector.test.ts  (15 tests) 15ms
 βœ“ packages/wdio-utils/tests/initialiseServices.test.ts  (14 tests | 5 skipped) 16ms
 βœ“ packages/wdio-appium-service/tests/utils.test.ts  (20 tests) 12ms
 βœ“ packages/wdio-browserstack-service/tests/util.test.ts  (18 tests) 17ms
 βœ“ packages/wdio-selenium-standalone-service/tests/launcher.test.ts  (15 tests) 19ms
 βœ“ packages/devtools/tests/elementStore.test.ts  (3 tests) 12ms
 βœ“ packages/wdio-utils/tests/test-framework/testFnWrapper-async.test.ts  (4 tests) 10ms
 βœ“ packages/wdio-selenium-standalone-service/tests/utils.test.ts  (18 tests) 10ms
 βœ“ packages/webdriverio/tests/constants.test.ts  (9 tests) 12ms
 βœ“ packages/wdio-utils/tests/test-framework/testInterfaceWrapper.test.ts  (7 tests) 14ms
 ↓ packages/wdio-utils/tests/initialisePlugin.test.ts  (7 tests | 7 skipped)
 ↓ packages/wdio-config/tests/RequireLibrary.test.ts  (2 tests | 2 skipped)
 βœ“ packages/wdio-cli/tests/config.test.ts  (1 test) 4ms
 ↓ packages/webdriverio/tests/commands/element/shadow$$.test.ts  (1 test | 1 skipped) 1ms

 ❯ ConfigParser.addConfigFile packages/wdio-config/src/lib/ConfigParser.ts:71:35
     69|              * be more flexible and pick allow for these as well.
     70|              */
     71|             const importedModule = await this._pathService.loadFile<Im…
       |                                   ^
     72|             const config = (importedModule as ESMImport).config || (im…
     73|             if (typeof config !== 'object') {
 ❯ async /<FULL_PROJECT_PATH>/webdriverio/packages/wdio-config/tests/configparser.test.ts:661:7

Test Files  1 failed | 217 passed | 3 skipped (221)
     Tests  1 failed | 2360 passed | 23 skipped (2384)
  Start at  20:24:47
  Duration  93.62s (transform 6.68s, setup 26ms, collect 181.84s, tests 30.29s)

 ❯ packages/wdio-config/tests/configparser.test.ts  (62 tests | 1 failed) 281ms
   ❯ packages/wdio-config/tests/configparser.test.ts > ConfigParser > addService > should only add functions
     β†’ [vite-node] Failed to load /<FULL_PROJECT_PATH>/webdriverio/packages/wdio-config/tests/__fixtures__/wdio.conf.ts
stdout | unknown test
2022-10-29T01:31:25.512Z INFO webdriver: Initiate new session using the WebDriver protocol

Code of Conduct

  • I agree to follow this project’s Code of Conduct

Is there an existing issue for this?

  • I have searched the existing issues

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
sabrinapowellcommented, Oct 31, 2022

@sabrinapowell can you create a repository with a GitHub workflow that reproduces this?

I’m going to attempt this right now

0reactions
christian-bromanncommented, Nov 18, 2022

Closing due to inactivity. Let me know if you can provide a reproducible example and I am happy to re-open the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to run tests on Firefox using Selenium Standalone ...
When setting up new project using standalone service and setting up firefox as the browser, it's not running the tests.
Read more >
"Error: not found: java" when running webdriver.io test
In case we are using selenium-standalone-service for running the test then ... >npm install @wdio/selenium-standalone-service --save-dev.
Read more >
Testrunner | WebdriverIO
WebdriverIO comes with its own test runner to help you start testing as quickly as possible. It is suppose to do all the...
Read more >
selenium-standalone
Start using selenium-standalone in your project by running `npm i selenium-standalone`. There are 151 other projects in the npm registryΒ ...
Read more >
Setting Up an End-to-End Testing Workflow with Gulp, ...
Manual testing is usually slow, tedious and error-prone, ... npm install --save-dev gulp npm install --global gulp-cli.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found