The AutoReset E2E tests of BitFileInput and BitFileUpload open the second chooser before Firefox has closed the first
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 5/12/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
BitFileInputE2ETests.AutoReset_ClearsTheSelectionWhenTheChooserOpensAgain failed on both tries in "blazorui e2e / E2E firefox / wasm / 3 of 4" of All Other E2E CI run 47455950741. The second time the test opens the chooser, no file chooser arrives:
System.TimeoutException: Timeout 30000ms exceeded while waiting for event "FileChooser"
at BitFileInputE2ETests.AutoReset_ClearsTheSelectionWhenTheChooserOpensAgain() in BitFileInputE2ETests.cs:520
Its twin BitFileUploadE2ETests.AutoReset_EmptiesTheListWhenTheChooserOpensAgain fails at the same step (BitFileUploadE2ETests.cs:579). The failures were all on Firefox in WebAssembly mode:
| Run | Test | Tries |
|---|---|---|
| 44288338655 (11-18) | FileUpload | both |
| 44816299211 (11-20) | FileInput | first |
| 46152706341 (11-28) | FileInput | both |
| 46729186474 (12-01) | FileUpload | first |
| 47455950741 (12-05) | FileInput, FileUpload | both, first |
| 47467294543 (12-05) | FileUpload | first |
Cause: Playwright's Firefox build reports the chooser too early.
Playwright 1.65.2 ships Firefox build r1572, which reports a chooser when Firefox announces that it is about to open the input's picker, and closes that picker from Firefox's parent process a moment later. Until the picker is closed, Firefox opens no other picker on the input (HTMLInputElement::InitFilePicker returns at once while one is running), so a second click on the same input that comes in that window opens nothing, and no chooser is reported.
Probe run 47474704882 clicked #fin-autoreset's Browse button twice in a row, recording whether the input matched :open when the first chooser was reported, and the page's events:
- On Firefox (server mode), in 1 of 10 runs the input still matched
:openwhen the first chooser was reported, and still matched it at the second click 70 ms later. The first picker had fired nocancelyet. The second click didn't use up the user activation, whichInitFilePickerdoes only after that check, and no second chooser arrived in 10 seconds. - In the other 9 runs, Firefox closed the first picker within about 20 ms (
cancel), the input no longer matched:open, and the second chooser arrived. - In the 10 runs on each engine and mode that waited for the input to leave
:openbefore the second click, every second chooser arrived. On Chromium and WebKit the input never matched:openwhen the chooser was reported.
Playwright has fixed this in its Firefox build r1584 (microsoft/playwright#44390), which reports the chooser only once the picker it took over is done, to "let HTMLInputElement clear mPickerRunning before the client can open it again". No Playwright .NET package ships that build yet.
Fix. Each test that opens a chooser on an input it opens again waits, after it sets the chooser's files, until the input no longer matches :open (E2ETestBase.WaitForPickerClosedAsync). That covers both AutoReset tests through their PickThroughChooserAsync, BitFileInputE2ETests.Keyboard_EnterAndSpaceOnTheBrowseButtonOpenTheChooser and the two BitMarkdownEditorE2ETests image upload tests that open the upload button twice. On Chromium and WebKit, and on a Firefox build with r1584, the wait returns at once. The tests' checks don't change.
- Ngôn ngữ chính
- C#
- Star
- 1.4k
- Fork
- 264
- Merge trung bình
- 5 giờ 25 phút
- Pull request đã merge (30 ngày)
- 447
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
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của bitfoundation/bitplatform
-
Project dependencies are outdatedCó thể đã có người làm @yasmoradi đã nhận hôm nay. Đang mởdependencies
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
bitfoundation/bitplatform#15616 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Bug: Duplicate scrollbars in NotificationCenter after rapidly creating multiple notificationsĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 63/100
bitfoundation/bitplatform#15606 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
An E2E test's retry runs on the Firefox instance whose page crashed on its first tryCó thể đã có người làm @msynk đã nhận hôm nay. Đang mở
bitfoundation/bitplatform#15624 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
The BitDatePicker look E2E test presses Escape before the year grid has the focusCó thể đã có người làm @msynk đã nhận hôm nay. Đang mở
bitfoundation/bitplatform#15623 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
BitPdfViewer hands the focus back for the wrong dialog when two viewers' dialogs close out of orderCó thể đã có người làm @msynk đã nhận hôm nay. Đang mở
bitfoundation/bitplatform#15622 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của bitfoundation/bitplatform
Issue tương tự
-
fix: [v5] FluentTextInput throws from ElementInternals during .NET 11 enhanced form navigationĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
microsoft/fluentui-blazor#5721 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG] speech tts synthesize rejects valid locales such as fil-PH, yue-CN and sr-Latn-RS in --languageCó thể đã có người làm @Shizoqua đã nhận hôm nay. Đang mởAzure.Mcp.Server needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 2 ngày
-
:watch: Not Triaged Pri3
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 91/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area-controls-shell platform/android
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
dotnet/maui#41304 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày