-
-
Notifications
You must be signed in to change notification settings - Fork 832
Closed
Labels
Bug: ValidatedThis PR or Issue is verified to be a bug within StencilThis PR or Issue is verified to be a bug within Stencil
Description
Prerequisites
- I have read the Contributing Guidelines.
- I agree to follow the Code of Conduct.
- I have searched for existing issues that already report this problem, without success.
Stencil Version
4.14.0
Current Behavior
Following up on #5252 (comment): When using testing-library/dom with stencil errors occur when using getByRole and getByLabelText
getByRole
Right-hand side of 'instanceof' is not an object
getByLabelText:
TestingLibraryElementError: Found a label with the text of: Test, however no form control was found associated to that label. Make sure you're using the "for" attribute or "aria-labelledby" attribute correctly.
Expected Behavior
Both methods should find the respective element without errors
System Info
@testing-library/dom: 9.3.4
@testing-library/jest-dom: 6.4.2▶ npx stencil info
System: node 21.6.1
Compiler: [...]/node_modules/@stencil/core/compiler/stencil.js
Build: 1711981251
Stencil: 4.14.0 🚡
TypeScript: 5.4.3
Rollup: 2.56.3
Parse5: 7.1.2
jQuery: 4.0.0-pre
Terser: 5.30.0
Steps to Reproduce
see repo
Code Reproduction URL
Additional Information
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Bug: ValidatedThis PR or Issue is verified to be a bug within StencilThis PR or Issue is verified to be a bug within Stencil