Skip to content

Testability does not wait for PendingTasks #68180

@hemvignesh

Description

@hemvignesh

Which @angular/* package(s) are the source of the bug?

core

Is this a regression?

Yes

Description

When make my Angular app zoneless, protractor integration tests are failing. It does not wait for routing, network requests or any async work to complete.

I traced it back to Testability always declaring the app as stable. This is due to only looking at the NoopNgZone for stability. Please also make Testability consider PendingTasks just like ApplicationRef.

Please provide a link to a minimal reproduction of the bug

https://aistudio.google.com/apps/97ffc844-4421-49e4-a012-c21c5bae0ba9

Please provide the exception or error you saw


Please provide the environment you discovered this bug in (run ng version)

HEAD

Anything else?

Fix will allow apps using ComponentHarness for integration testing to migrate to Zoneless.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: coreIssues related to the framework runtimegemini-triagedLabel noting that an issue has been triaged by gemini

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions