BitReducedMotionBrowserTests measure an image fade that has already ended

Aperta
#15,564 1 commento 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@msynk ci sta già lavorando.

Dal 1/12/2026.

  • #15563 di @yasmoradi — aperta

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

Two tests of BitReducedMotionBrowserTests fail since #15526 (BitImage's DarkSrc), in All Other E2E CI's BlazorUI "browser tests" job (run 46539742269, job 142275003418):

  • ReducedMotion_AnAppRestoringTheTokensAtRoot_KeepsThePace
  • ThePreferenceIsFollowedLive

Both say Expected 1700ms in #plain: image: 0ms. The other 914 tests of the job pass, and the same job passed on 2026-11-28 (run 46175342692), before #15526.

Cause. #15526 drops an image's fade once its bit-img-fade-in animation ends (HandleOnImageAnimationEnd), so that a fade never plays again. Both tests measure the image probe at the page's pace after a reduced-motion phase: one opens the page under reduced motion and only then adds the stylesheet that restores the tokens, the other switches the preference to reduce and back. Under reduced motion the fade collapses and ends at once, so by the time the pace is back there is no fade left on the image, and the probe measures 0ms. The library does what #15526 meant it to; the tests assumed the fade stays on the image.

Fix. The test page renders the image again, under a new key, when the test presses a "replay" button, and AssertPace replays the fade before it measures the image probe at a pace. So the image is still measured at the pace each test expects, on a fade that runs under the current preference and tokens. Under reduced motion nothing changes: a collapsed fade and a finished one both measure as collapsed.

Lingua principale
C#
Stelle
1.4k
Fork
264
Merge medio
5h 45m
PR unite (30g)
494

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di bitfoundation/bitplatform

Tutte le issue di bitfoundation/bitplatform

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.