Skip to content

refactor(multiple): migrate tests to use whenStable#33317

Open
ok7sai wants to merge 1 commit into
angular:mainfrom
ok7sai:refactor/use-whenstable
Open

refactor(multiple): migrate tests to use whenStable#33317
ok7sai wants to merge 1 commit into
angular:mainfrom
ok7sai:refactor/use-whenstable

Conversation

@ok7sai
Copy link
Copy Markdown
Member

@ok7sai ok7sai commented May 29, 2026

No description provided.

@ok7sai ok7sai marked this pull request as ready for review May 29, 2026 09:35
@pullapprove pullapprove Bot requested review from andrewseguin and crisbeto May 29, 2026 09:36
const click = async (target: HTMLElement) => {
target.dispatchEvent(new PointerEvent('click', {bubbles: true}));
fixture.detectChanges();
await fixture.whenStable();
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the context behind this change? I was under the impression that detectChanges is preferrable.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm interesting. IMO if the tests work as we expect, we don't need to change them, but I'm leaving it to your judgement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants