angular / angular/components

Continue test harness execution if zone doesn't stabilize within a certain amount of time

オープン
#24,051 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
area: cdk/testing feature P3
主要言語
TypeScript
スター
25k
フォーク
6.8k
平均マージ
1日 8時間
マージ済み PR(30日)
91

説明

Currently the test harnesses wait for the zone to stabilize before executing, however there are some cases where it might not happen. For example, in https://github.com/angular/components/issues/23964 the test times out because a Material component uses `requestAnimationFrame` which the browser can decide to pause if it's out of view.

One thing to consider is that Jasmine tests time out after 5s by default so we should pick a number that is lower.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず、ゾーンの安定化を待機するテストハーネスのコードを特定し、次に Jasmine のデフォルトの 5 秒のタイムアウトがこれらのテストにどのように適用されるかを確認します。angular/components#23964 で説明されている requestAnimationFrame のシナリオを再現します。安定化がより短い制限時間内に発生しない場合でもハーネスが処理を継続し、通常の安定化後の実行は変更されない状態になれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
typescript
領域
testing
issue の種類
機能追加
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
38/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。