The bundled @effect/ui testing example clicks a missing “Save now” button
维护者通常 1 天内回复
评估
- 难度
- 1/5
- 预计耗时
- 1 小时以内
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 停滞
- 技术栈
- typescript
- 领域
- testing
调研方向
Read ai-docs/src/10_ui/50_testing.ts around lines 544–553 and compare the example with fixtures/pages/notes/NotePage.ts and fixtures/notes/components/NoteEditor.ts. Run the reproduction command from the issue; changing the click target from “Save now” to “Save” should let the test pass, including the saved notice and hidden editor. An open linked pull request indicates work is already underway.
由索引模型根据 Issue 内容生成。
描述
What is the type of issue?
Example code is not working
What is the issue?
The bundled App as a Play example fails when it tries to save an edited note. It should show Saved, then hide the editor when the test clicks Hide. Instead it stops at HtmlPlay.click: nothing matches text "Save now".
Reproduced on macOS arm64 with Node 24.22.3, using @effect/[email protected] from UI main at 77391ee50ae3d3175d670facbf675e9a819ba6a6. The @main and SHA-pinned downloads were byte-identical. Run in an empty directory:
cat > package.json <<'JSON'
{
"private": true,
"type": "module",
"imports": {
"#domain/*": "./fixtures/domain/*.ts",
"#queries/*": "./fixtures/queries/*.ts"
}
}
JSON
npm install --min-release-age=0 --ignore-scripts --no-audit --no-fund \
[email protected] @effect/[email protected] [email protected] [email protected] \
'@effect/ui@https://pkg.pr.new/Effect-TS/ui/@effect/ui@77391ee50ae3d3175d670facbf675e9a819ba6a6'
guide=node_modules/@effect/ui/ai-docs/src/10_ui
cp -R "$guide/fixtures" .
cp "$guide/50_testing.ts" upstream.test.ts
./node_modules/.bin/vitest run upstream.test.ts --retry 0 -t 'loads a note, saves an edit and shows the notice'
Changing only the click argument to Save passes the assertions for the Saved notice and the hidden editor.
Where did you find it?
ai-docs/src/10_ui/50_testing.ts:544–553 describes and clicks a summary-slot button that the fixture no longer renders. The summary has only the title, and the editor has a Save submit button. fixtures/pages/notes/NotePage.ts:63–73, fixtures/notes/components/NoteEditor.ts:194–197.
- 主要语言
- TypeScript
- 星标
- 16.7k
- 派生
- 808
- 平均合并
- 21 小时 22 分钟
- 30 天内合并 PR
- 486
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Effect-TS/effect 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
`@effect/ui-native` (Effect-TS/ui): `kit/VirtualList` `list` part widens `R` to `any`, poisoning enclosing components可能已有人在做 @effect-bot 今天认领。 未关闭
Effect-TS/effect#11097 · 已指派 1 人 ·
维护者通常 1 天内回复
-
`@effect/ui-native` (Effect-TS/ui): Controlled `input` rejected-edit restore never calls `host.commit()`可能已有人在做 @effect-bot 今天认领。 未关闭
Effect-TS/effect#11096 · 已指派 1 人 ·
维护者通常 1 天内回复
相似的 Issue
-
check:failed streams:edit
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 67/100
维护者通常 1 天内回复
-
[Bug]: Critical path skips a child span that ends exactly when the next one starts可能已有人在做 @Piyush4801 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
jaegertracing/jaeger-ui#4865 · 1 条评论 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 90/100
anthropics/claude-code#112972 ·
-
Type: Improvement
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复