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

未关闭
#1,907 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
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 小时
30 天内合并 PR
60

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

DouglasNeuroInformatics/OpenDataCapture 的其他 Issue

查看 DouglasNeuroInformatics/OpenDataCapture 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。