The BitDatePicker look E2E test presses Escape before the year grid has the focus
I maintainer di solito rispondono entro 1 giorno
@msynk ci sta già lavorando.
Dal 5/12/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
BitDatePickerLookE2ETests.Appearance_IconNameAndIconPickTheGlyphs (src/BlazorUI/Tests/E2E/Bit.BlazorUI.Tests.E2E/Inputs/BitDatePickerLookE2ETests.cs) failed on both tries in "blazorui e2e / E2E webkit / server" of All Other E2E CI run 47455950741. The next picker it opens finds the previous callout still open:
Locator expected to have count '0'
But was: '1'
- Expect "ToHaveCountAsync" Locator(".bit-dtp-ovl:visible, .bit-dtrp-ovl:visible") with timeout 30000ms
at BitDatePickerLookE2ETests.OpenPickerAsync(String rootId)
at BitDatePickerLookE2ETests.Appearance_IconNameAndIconPickTheGlyphs()
That is OpenPickerAsync("dp-time-icons"), right after the Escape that should have closed the #dp-nav-icons callout.
Cause: the test. It clicks the month picker's title (.bit-dtp-mwp .bit-dtp-ptb) to show the year range, checks the range's icons and presses Escape to close the callout. The callout handles Escape in its own keydown, so it closes only when the focus is inside it. The clicked title is replaced by the year grid, and the picker gives the focus to that grid's year cell after the render. On Blazor Server that is a round trip after the click, and until then the focus is on <body>: WebKit doesn't focus a clicked button, and the other engines lose it when the title is removed. An Escape pressed in that window goes to the body, and the callout stays open. BitDatePickerE2ETests already checks that the picker hands the focus over to the year grid.
Probe run 47467932146 clicked the title and pressed Escape the way the test does, recording the focus:
- With the circuit's server-to-page messages delayed by 150 ms (Playwright's WebSocket routing), the callout stayed open in 4 of 4 runs on each of WebKit, Chromium and Firefox. The focus was on
<body>when Escape was pressed, and reached the year cell about 100 ms later. - With the same delay, waiting for the year cell to have the focus before pressing Escape closed the callout in 4 of 4 runs on each engine.
- Without the delay, every run closed the callout. Even so, in 1 of 6 runs on WebKit and 2 of 6 on Firefox the focus was still on
<body>just after the click.
Fix. Before it presses Escape, the test waits for the year cell to have the focus.
- Lingua principale
- C#
- Stelle
- 1.4k
- Fork
- 264
- Merge medio
- 5h 25m
- PR unite (30g)
- 447
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
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di bitfoundation/bitplatform
-
Project dependencies are outdatedForse già presa @yasmoradi l’ha presa oggi. Apertadependencies
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
bitfoundation/bitplatform#15616 ·
I maintainer di solito rispondono entro 1 giorno
-
Bug: Duplicate scrollbars in NotificationCenter after rapidly creating multiple notificationsAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 63/100
bitfoundation/bitplatform#15606 ·
I maintainer di solito rispondono entro 1 giorno
-
The AutoReset E2E tests of BitFileInput and BitFileUpload open the second chooser before Firefox has closed the firstForse già presa @msynk l’ha presa oggi. Aperta
bitfoundation/bitplatform#15625 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
An E2E test's retry runs on the Firefox instance whose page crashed on its first tryForse già presa @msynk l’ha presa oggi. Aperta
bitfoundation/bitplatform#15624 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
BitPdfViewer hands the focus back for the wrong dialog when two viewers' dialogs close out of orderForse già presa @msynk l’ha presa oggi. Aperta
bitfoundation/bitplatform#15622 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di bitfoundation/bitplatform
Issue simili
-
fix: [v5] FluentTextInput throws from ElementInternals during .NET 11 enhanced form navigationAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 73/100
microsoft/fluentui-blazor#5721 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
[BUG] speech tts synthesize rejects valid locales such as fil-PH, yue-CN and sr-Latn-RS in --languageForse già presa @Shizoqua l’ha presa oggi. ApertaAzure.Mcp.Server needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 2 giorni
-
:watch: Not Triaged Pri3
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 91/100
I maintainer di solito rispondono entro 1 giorno
-
area-controls-shell platform/android
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
dotnet/maui#41304 · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno