The BitDatePicker look E2E test presses Escape before the year grid has the focus
メンテナーはふだん 1 日以内に返信
@msynk がすでに取り組んでいます。
2026年12月5日 から。
評価
この issue はまだ評価されていません。
説明
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.
- 主要言語
- C#
- スター
- 1.4k
- フォーク
- 264
- 平均マージ
- 5時間 25分
- マージ済み PR(30日)
- 447
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
bitfoundation/bitplatform のほかの issue
-
Project dependencies are outdated対応中かも @yasmoradi が今日担当しました。 オープンdependencies
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
bitfoundation/bitplatform#15616 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 63/100
bitfoundation/bitplatform#15606 ·
メンテナーはふだん 1 日以内に返信
-
The AutoReset E2E tests of BitFileInput and BitFileUpload open the second chooser before Firefox has closed the first対応中かも @msynk が今日担当しました。 オープン
bitfoundation/bitplatform#15625 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
An E2E test's retry runs on the Firefox instance whose page crashed on its first try対応中かも @msynk が今日担当しました。 オープン
bitfoundation/bitplatform#15624 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
BitPdfViewer hands the focus back for the wrong dialog when two viewers' dialogs close out of order対応中かも @msynk が今日担当しました。 オープン
bitfoundation/bitplatform#15622 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
bitfoundation/bitplatform の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
microsoft/fluentui-blazor#5721 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
[BUG] speech tts synthesize rejects valid locales such as fil-PH, yue-CN and sr-Latn-RS in --language対応中かも @Shizoqua が今日担当しました。 オープンAzure.Mcp.Server needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 2 日以内に返信
-
:watch: Not Triaged Pri3
難易度 1/5 1時間未満 初心者へのやさしさ 91/100
メンテナーはふだん 1 日以内に返信
-
area-controls-shell platform/android
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
dotnet/maui#41304 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信