-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Html code block not displayed inside defer block in Angular v17 #28306
Comments
Same issue here. Critical bug on my side since i cannot test my components. |
any news about it? |
We are experiencing the same behaviour in our component tests running v13.5.1 |
I confirm this behaviour in cypress v13.6.1 when can we expect to handle defer in component testing? |
I have written a workaround for this issue Service:
Component:
and HTML for that component:
then in component test add configuration
|
Hey @MattiaMalandrone thanks for opening this issue. I went ahead and created an example repo and blog article to highlight how you can do this. https://dev.to/angular/testing-defer-blocks-in-angular-with-cypress-21j8 Hopefully this helps! |
I'm going to close this for now but we may create something more "official" in the future |
Thanks Jordan!!!! |
Current behavior
Trying testing new angular control flow the html inside a defer block is not displayed when running test in component testing inside cypress
app.component.html
Only string "outside defer" is displayed
Desired behavior
I expect that html code inside a defer block will be displayed
Test code to reproduce
https://github.com/MattiaMalandrone/cypress-defer-block-angular17
launching
npx cypress open
-> component testing -> chrome -> AppComponent.cy.tsCypress Version
13.5.0
Node version
18.18.2
Operating System
windows 10
Debug Logs
No response
Other
No response
The text was updated successfully, but these errors were encountered: