Skip to content
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

Run Angular component tests only after app initializers have completed. #30387

Open
samuelfernandez opened this issue Oct 10, 2024 · 0 comments
Labels
CT Issue related to component testing npm: @cypress/angular @cypress/angular package issues

Comments

@samuelfernandez
Copy link

What would you like?

Run Cypress tests only after app initializers have completed. Or at least hook into that process and run a forced change detection after completing.

Why is this needed?

Angular component tests might rely on app initializers. Those don't cause the zone to be unstable, so tests are executed before they complete. This is known to Angular tests: angular/angular#24218

However in Cypress component tests there is no workaround to make it wait.

Other

Related to #24429 (comment)

cc @mfrieling @rainerhahnekamp

@jennifer-shehane jennifer-shehane added CT Issue related to component testing npm: @cypress/angular @cypress/angular package issues labels Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CT Issue related to component testing npm: @cypress/angular @cypress/angular package issues
Projects
None yet
Development

No branches or pull requests

2 participants