chore(webdriver): add unit tests for DNS patch#14272
Conversation
eslint-plugin-wdio
@wdio/allure-reporter
@wdio/browser-runner
@wdio/browserstack-service
@wdio/appium-service
@wdio/cli
@wdio/concise-reporter
@wdio/config
@wdio/cucumber-framework
@wdio/dot-reporter
@wdio/firefox-profile-service
@wdio/globals
@wdio/jasmine-framework
@wdio/json-reporter
@wdio/junit-reporter
@wdio/lighthouse-service
@wdio/local-runner
@wdio/logger
@wdio/mocha-framework
@wdio/protocols
@wdio/repl
@wdio/reporter
@wdio/runner
@wdio/sauce-service
@wdio/shared-store-service
@wdio/smoke-test-cjs-service
@wdio/smoke-test-reporter
@wdio/smoke-test-service
@wdio/spec-reporter
@wdio/static-server-service
@wdio/sumologic-reporter
@wdio/testingbot-service
@wdio/types
@wdio/utils
@wdio/webdriver-mock-service
webdriver
webdriverio
commit: |
4ddc3ec to
5a54d60
Compare
|
It looks like some e2e tests need to be updated |
|
Sorry to jump in. We have modified some of the code where this PR is concerned to ensure that the E2E test is successful. |
|
Thanks @mato533 for helping push this over the goal line 🙏 |
| const websockets: WebSocket[] = candidateUrls.map((candidateUrl) => { | ||
| log.debug(`Attempt to connect to webSocketUrl ${candidateUrl}`) | ||
| try { | ||
| const ws = new WebSocket(candidateUrl) |
There was a problem hiding this comment.
Can we send options here as second argument in order to be able to send headers when connect to browser using ws? These options are already passed to connectWebsocket method
|
@DudaGod @christian-bromann |
|
Sounds good to me, merged #14303 |
Proposed changes
This adds unit tests for #14259. It also moves most of the added logic into a separate file as it is Node.js related and we want to keep basic implementations unrelated to the environment where it is executed in.
Types of changes
Checklist
Backport Request
//: # (The current
mainbranch is the development branch for WebdriverIO v9. If your change should be released to the current major version of WebdriverIO (v8), please raise another PR with the same changes against thev8branch.)v9and doesn't need to be back-ported#XXXXXFurther comments
@mykola-mokhnach please review
Reviewers: @webdriverio/project-committers