Skip to content

refactor!: remove webdriverio package#10675

Merged
hi-ogawa merged 3 commits into
mainfrom
feat/remove-wdio
Jun 30, 2026
Merged

refactor!: remove webdriverio package#10675
hi-ogawa merged 3 commits into
mainfrom
feat/remove-wdio

Conversation

@sheremet-va

Copy link
Copy Markdown
Member

@netlify

netlify Bot commented Jun 29, 2026

Copy link
Copy Markdown

Deploy Preview for vitest-dev ready!

Name Link
🔨 Latest commit 8907c57
🔍 Latest deploy log https://app.netlify.com/projects/vitest-dev/deploys/6a42942e4e191300082ea4b6
😎 Deploy Preview https://deploy-preview-10675--vitest-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Jun 29, 2026

Copy link
Copy Markdown

Deploy Preview for vitest-dev ready!

Name Link
🔨 Latest commit b7dae91
🔍 Latest deploy log https://app.netlify.com/projects/vitest-dev/deploys/6a42946497711d000771d111
😎 Deploy Preview https://deploy-preview-10675--vitest-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@AriPerkkio AriPerkkio left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙏

"@vitest/browser-playwright": "workspace:*",
"@vitest/browser-preview": "workspace:*",
"@vitest/browser-webdriverio": "workspace:*",
"@vitest/browser-webdriverio": "^5.0.0-beta.5 || >=5.0.0",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I forgot why browser is peer dep. Don't we want to eventually remove webdriverio one at least otherwise version bump seems messy.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vitest/browser exports from the webdriverio. without it, the types are not populated. I am not sure if there is a better way

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh that one. Then it's fine for another day in the future.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't actually add or extend any type through this though

export * from '@vitest/browser/context'

And actual semi-automatic type extension is through main provider import such as

declare module 'vitest/browser' {
export interface UserEventHoverOptions extends PWHoverOptions {}

It looks like vitest should have just @vitest/browser as optional peer dep instead of all three. Not sure what I may be missing.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we do that, then extra types from providers won't be picked up (like options)

Comment thread pnpm-workspace.yaml
Comment on lines +11 to +18
- webdriverio@9.29.1
- webdriver@9.29.1
- '@wdio/types@9.29.1'
- '@wdio/[email protected]'
- '@wdio/utils@9.20.0'
- '@wdio/config@9.20.0'
- '@wdio/logger@9.18.0'
- '@wdio/protocols@9.16.2'
- '@wdio/utils@9.29.1'
- '@wdio/config@9.29.1'
- '@wdio/logger@9.29.1'
- '@wdio/protocols@9.29.1'

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these still needed?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still needed for #10675 (comment)

@hi-ogawa hi-ogawa left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also as we discussed, we still have webdriverio branch in core but removing/reworking these are out of scope. Just surfacing these for posterity:

  • packages/browser/src/node/rpc.ts:323switchContext RPC gated to provider.name !== 'webdriverio'.
  • packages/vitest/src/node/pools/browser.ts:459shouldIgnoreDebugger special-cases webdriverio (chrome/edge only).
  • packages/browser/src/client/tester/tester.ts:185 — a non-trivial iframe context-switch block that runs only when server.provider === 'webdriverio'.
  • packages/browser/src/client/tester/tester-utils.ts:90 — shadow-DOM >>> selector prefix only for webdriverio.
  • packages/browser/src/client/tester/context.ts:50 — keyboard modifier maps webdriverio → Ctrl.
  • packages/browser/src/client/tester/logger.ts:100 — filters [WDIO] shadow-root logs.

@hi-ogawa hi-ogawa left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@hi-ogawa
hi-ogawa merged commit 5fed68f into main Jun 30, 2026
18 checks passed
@hi-ogawa
hi-ogawa deleted the feat/remove-wdio branch June 30, 2026 02:06
@hi-ogawa

hi-ogawa commented Jun 30, 2026

Copy link
Copy Markdown
Collaborator

Btw, in what sense is this breaking? (meaning anything to mention as v5 breaking?)

@sheremet-va

Copy link
Copy Markdown
Member Author

Btw, in what sense is this breaking? (meaning anything to mention as v5 breaking?)

Hm, it is not breaking, right 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants