BitReducedMotionBrowserTests measure an image fade that has already ended

Đang mở
#15,564 1 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@msynk đang làm issue này rồi.

Từ ngày 1/12/2026.

  • #15563 của @yasmoradi — đang mở

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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.

Ngôn ngữ chính
C#
Star
1.4k
Fork
264
Merge trung bình
5 giờ 45 phút
Pull request đã merge (30 ngày)
494

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của bitfoundation/bitplatform

Tất cả issue của bitfoundation/bitplatform

Issue tương tự

Thêm issue về C#

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.