Skip to content

fix!: represent locator as an object instead of a string#10212

Merged
sheremet-va merged 21 commits intovitest-dev:mainfrom
sheremet-va:refactor/inline-mocker
Apr 28, 2026
Merged

fix!: represent locator as an object instead of a string#10212
sheremet-va merged 21 commits intovitest-dev:mainfrom
sheremet-va:refactor/inline-mocker

Conversation

@sheremet-va
Copy link
Copy Markdown
Member

@sheremet-va sheremet-va commented Apr 27, 2026

Currently asLocator is re-exported from the Node entry point which bundles ivya twice (in the browser and node). To fix that, we now include the locator string in the JSON message. This is a breaking change since commands now receive an object instead of a string.

@sheremet-va sheremet-va requested a review from hi-ogawa April 27, 2026 15:35
@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 27, 2026

Deploy Preview for vitest-dev ready!

Name Link
🔨 Latest commit 1cd8c4c
🔍 Latest deploy log https://app.netlify.com/projects/vitest-dev/deploys/69f0ac7fb3c66000078d40cd
😎 Deploy Preview https://deploy-preview-10212--vitest-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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

@sheremet-va sheremet-va changed the title fix!: represent locator as an object instead of a string, inline mocker fix!: represent locator as an object instead of a string Apr 28, 2026
// resolved server-side from stack in __vitest_recordBrowserTrace command
location?: { file: string; line: number; column: number }
selector?: string
element?: SerializedLocator
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.

This looks good. The change should be already verifiable by updating snapshot of test/browser/specs/trace.test.ts. UI side wiring is just TraceView.vue and just manual testing is enough.

@sheremet-va sheremet-va merged commit 80f07ed into vitest-dev:main Apr 28, 2026
15 of 16 checks passed
@sheremet-va sheremet-va deleted the refactor/inline-mocker branch April 28, 2026 14:11
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.

2 participants