Skip to content

fix: inject a consistent testid#45

Merged
sheremet-va merged 1 commit intomainfrom
fix/inject-consistent-test-id
Jan 22, 2026
Merged

fix: inject a consistent testid#45
sheremet-va merged 1 commit intomainfrom
fix/inject-consistent-test-id

Conversation

@sheremet-va
Copy link
Copy Markdown
Member

Vitest 4.0.18 hides the testid attribute with __vitest_\d+__ value to reduce the breaking change surface

@sheremet-va sheremet-va merged commit f5c883a into main Jan 22, 2026
4 checks passed
ShaulLavo added a commit to ShaulLavo/vitest-browser-solid that referenced this pull request Mar 27, 2026
Port upstream fix from vitest-browser-react (vitest-community#42, vitest-community#44, vitest-community#45) to prevent
flaky locators when baseElement/container lack a testid attribute.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

1 participant