cypress icon indicating copy to clipboard operation
cypress copied to clipboard

Run Angular component tests only after app initializers have completed.

Open samuelfernandez opened this issue 1 year ago • 0 comments

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: https://github.com/angular/angular/issues/24218

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

Other

Related to https://github.com/cypress-io/cypress/issues/24429#issuecomment-1747239160

cc @mfrieling @rainerhahnekamp

samuelfernandez avatar Oct 10 '24 10:10 samuelfernandez

This issue has not had any activity in 180 days. Cypress evolves quickly and the reported behavior should be tested on the latest version of Cypress to verify the behavior is still occurring. It will be closed in 14 days if no updates are provided.

cypress-app-bot avatar Apr 09 '25 02:04 cypress-app-bot

This issue has been closed due to inactivity.

cypress-app-bot avatar Apr 23 '25 02:04 cypress-app-bot