[π Bug]: npm run test fails when creating WebdriverIO development environment on Mac
See original GitHub issueHave you read the Contributing Guidelines on issues?
- I have 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: [32m'foobar'[39m }, firstMatch: [ {} ] },
desiredCapabilities: { browserName: [32m'foobar'[39m }
}
β 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
[ [32m'some-elem-123'[39m, [32m'foobar'[39m ]
β 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: [32m'foobar'[39m }, firstMatch: [ {} ] },
desiredCapabilities: { browserName: [32m'foobar'[39m }
}
β 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: [32m'foobar'[39m }, firstMatch: [ {} ] },
desiredCapabilities: { browserName: [32m'foobar'[39m }
}
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: [32m'css selector'[39m, value: [32m'#foo'[39m }
2022-10-29T01:25:39.314Z INFO webdriver: RESULT { [32m'element-6066-11e4-a52e-4f735466cecf'[39m: [32m'some-elem-123'[39m }
β 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: [32m'foobar'[39m }, firstMatch: [ {} ] },
desiredCapabilities: { browserName: [32m'foobar'[39m }
}
β 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:
- Created a year ago
- Comments:6 (5 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Iβm going to attempt this right now
Closing due to inactivity. Let me know if you can provide a reproducible example and I am happy to re-open the issue.