datahub.spec.ts row action menu test times out intermittently while it waits for the start-session form

オープン
#1,907 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
56/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
playwright, typescript
領域
frontend, testing

調査の方向性

Read src/specs/datahub.spec.ts around line 118 and inspect how the test navigates to /session/start-session and waits for start-session-form. First capture trace or failure context on a reproduced timeout, then compare with the other specs that open the same page. Done when the intermittent failure is understood and the test reliably passes in repeated runs.

索引モデルが issue の本文から書いたものです。

説明

Area: Infrastructure Bug Needs Info Priority: Low

In one of four local full runs of pnpm test:e2e, this test failed with a timeout. It passed in the other three full runs, and the complete datahub.spec.ts file then passed with --repeat-each 4 on the same tree.

Output

[chromium] › src/specs/datahub.spec.ts:118:3 › data hub › should open a subject from the list via the row action menu, landing on its record table

Test timeout of 30000ms exceeded.
Error: locator.waitFor: Test timeout of 30000ms exceeded.
  - waiting for getByTestId('start-session-form') to be visible

  123 |     const startSessionPage = await getPageModel('/session/start-session');
> 124 |     await startSessionPage.sessionForm.waitFor({ state: 'visible' });

The test did not get past its first step: the start-session form did not become visible in 30 seconds after navigation to /session/start-session.

Environment

  • Local run with 2 workers (not CI), chromium project
  • Linux 7.3.3-1-cachyos, Node v26.13.0, Playwright from the lockfile on the branch of #1904 (libui 6.20.0)

What is not known

  • I do not have the trace or the error context of the failed run; a later run replaced them.
  • I do not know if the page was slow to load or if the session or first-run state was not ready. Other specs open the same page with the same call and did not fail.

Found while preparing #1904.

主要言語
TypeScript
スター
119
フォーク
19
平均マージ
1日 18時間
マージ済み PR(30日)
60

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

DouglasNeuroInformatics/OpenDataCapture のほかの issue

DouglasNeuroInformatics/OpenDataCapture の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。