stencil icon indicating copy to clipboard operation
stencil copied to clipboard

bug: e2e tests do not support complex objects as props

Open nitroplonker opened this issue 2 years ago • 0 comments

Prerequisites

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

nitroplonker avatar Sep 21 '22 18:09 nitroplonker