Skip to content

docs(api): fix the findComponent example with CSS selectors - #3075

Merged
cexbrayat merged 2 commits into
vuejs:mainfrom
ValentinYoushkevich:docs/find-component-css-root
Dec 3, 2026
Merged

cexbrayat merged 2 commits into
vuejs:mainfrom
ValentinYoushkevich:docs/find-component-css-root

Conversation

@netlify

netlify Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

👷 Deploy request for vue-test-utils-docs pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 1163436

@pkg-pr-new

pkg-pr-new Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@vue/test-utils@3075

commit: 1163436

@cexbrayat cexbrayat 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.

Could we say “the root element of the wrapper you’re searching from” instead of “the root element of the mounted component” in all three translations? The same DOM node can return Root when searched from an outer wrapper and Child when searched from the nested Root wrapper, no?

@ValentinYoushkevich

Copy link
Copy Markdown
Contributor Author

Yes, exactly: searched from the Root wrapper, .root returns Child. Updated in all three translations, thanks!

@cexbrayat
cexbrayat merged commit 050a9d3 into vuejs:main Dec 3, 2026
6 checks passed
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