You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When e2e testing a component, it is suggested to pass in props with the page.$eval function. The problem with this is, that the component initializes already after await page.setContent('<my-comp/>');, so that the props are undefined at this moment and errors are thrown:
Expected behavior:
Prop definition should be possible right before component initialization/loading in e2e tests. A tsx/jsx syntax like in the unit tests would be perfect:
We apologize for the delay in addressing this issue. The StencilJS team has been hard at work, and we appreciate your patience.
As StencilJS has undergone significant updates and improvements since this issue was originally posted, we believe that this specific concern may no longer be relevant with the latest version. Therefore, we are closing this issue.
If you are still experiencing this problem or have any new issues, please feel free to open a new issue with the latest details, and we will be happy to assist you.
Thank you for your understanding and support of StencilJS!
Stencil version:
I'm submitting a:
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://stencil-worldwide.herokuapp.com/ or https://forum.ionicframework.com/
Current behavior:
When e2e testing a component, it is suggested to pass in props with the page.$eval function. The problem with this is, that the component initializes already after
await page.setContent('<my-comp/>');
, so that the props are undefined at this moment and errors are thrown:Expected behavior:
Prop definition should be possible right before component initialization/loading in e2e tests. A tsx/jsx syntax like in the unit tests would be perfect:
Steps to reproduce:
No steps to reproduce.
Related code:
Other information:
The text was updated successfully, but these errors were encountered: