stencil
stencil copied to clipboard
bug: e2e tests do not support complex objects as props
Prerequisites
- [X] I have read the Contributing Guidelines.
- [X] I agree to follow the Code of Conduct.
- [X] I have searched for existing issues that already report this problem, without success.
Stencil Version
2.13.0
Current Behavior
When a component requires a complex object as a prop to map e.g.
const obj = [{ value:"Value 1", label:"label 1" }, { value:"Value 2", label:"label 2" }];
When running in a test instance the component will not render as the props do not seem to be passed though correctly. The component works fine when running from an app
Expected Behavior
The component renders correctly in the test rendering engine
Steps to Reproduce
Write an e2e test for a component which requires a complex object as a prop
Code Reproduction URL
https://github.com/nitroplonker/complexobject
Additional Information
No response