angular / angular/components

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

Aperta
#24,051 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
area: cdk/testing feature P3
Lingua principale
TypeScript
Stelle
25k
Fork
6.8k
Merge medio
1g 8h
PR unite (30g)
91

Descrizione

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.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia individuando il codice del test harness che attende la stabilizzazione della zona, quindi esamina come il timeout predefinito di 5 secondi di Jasmine si applica a questi test. Riproduci lo scenario requestAnimationFrame descritto in angular/components#23964. Il lavoro è completato quando l'harness prosegue se la stabilizzazione non avviene entro un limite più breve, mentre l'esecuzione normale dopo la stabilizzazione rimane invariata.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
typescript
Ambito
testing
Tipo di issue
Funzionalità
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
38/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.