Continue test harness execution if zone doesn't stabilize within a certain amount of time
オープン
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