一键导入
bloom-canvas-e2e-testing
build and run automated Playwright end-to-end tests for Canvas Tool behavior on CURRENTPAGE.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
build and run automated Playwright end-to-end tests for Canvas Tool behavior on CURRENTPAGE.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Run, launch, screenshot, or drive the Bloom desktop app (Bloom.exe with embedded WebView2). Use when you need to start Bloom from this worktree, attach to a running Bloom, switch workspace tabs, take a screenshot, inspect DOM/console/network over CDP, or stop a Bloom instance.
Use when an agent needs to determine if Bloom is already running, detect whether the running Bloom came from a different worktree, kill Bloom or dotnet-watch parents, start Bloom from the current worktree, attach to the embedded WebView2 over CDP, inspect DOM/console/network, use dev-browser to inspect or run e2e tests against the actual exe instead of CURRENTPAGE.
Use when an agent needs to edit or repair a Bloom book HTML file while preserving the strict Bloom.html schema used by Bloom Desktop.
Add or review localizable strings in Bloom XLF files
React useEffect best practices from official docs. Use when writing/reviewing useEffect, useState for derived values, data fetching, or state synchronization. Teaches when NOT to use Effect and better alternatives.
Audit and fix WCAG color contrast in Bloom game themes. Generates a scrollable HTML preview showing every element of every theme in its real colors with low-contrast pairs flagged, then drives an AI-curated, human-approved fix loop. Use when adding or editing a game theme in gamesThemes.less, when a game element (dashed target, draggable, button, checkbox) is hard to see, or when a tester wants to eyeball all themes at once.
| name | bloom-canvas-e2e-testing |
| description | build and run automated Playwright end-to-end tests for Canvas Tool behavior on CURRENTPAGE. |
Use this skill when the user wants automated Playwright tests (not manual devtools reproduction) for Canvas Tool behavior.
This skill is for:
bookEdit/canvas-e2e-tests testsThis skill is not for:
react_components/*/*.uitest.tshttp://localhost:8089/bloom/CURRENTPAGE.bloom-canvassrc/BloomBrowserUIhttp://localhost:8089/bloom/CURRENTPAGEUse the src/BloomBrowserUI package and run the canvas suite via the root e2e script.
cd src/BloomBrowserUIpnpm installcd src/BloomBrowserUIpnpm e2e canvas specs/01-toolbox-drag-to-canvas.spec.tscd src/BloomBrowserUIpnpm e2e canvasBloom Edit Tab has multiple iframes. Use frame names first:
toolboxtoolboxContentpagepage-memsim-...htmCURRENTPAGE frame as editable page content.h3[data-toolid="canvasTool"]#canvasToolControls.bloom-canvas.bloom-canvas-elementimg[src*="comic-icon.svg"]Before clicking the canvas tool header, first check whether #canvasToolControls is already visible.
page.mouse.down/move/up), not synthetic dispatched drag events..bloom-canvas-element)doImageCommand(..., "change").Choose image from your computer...Change imageChoose Video from your Computer...Record yourself...A valid non-trivial proof test should:
CURRENTPAGE.bloom-canvas.bloom-canvas-element count increasedtestDir.playwright: not found: run pnpm install in src/BloomBrowserUI.page frame, not top frame.