Skip to main content

visual-test

Run or add Playwright visual specs and know when a layout or CSS change needs npm run test:visual. Use after first-paint, panel-layout, or PurgeCSS safelist changes, or when adding a Playwright case.

来源信息

仓库
LiberatedPixelCup/Universal-LPC-Spritesheet-Character-Generator
最近来源活动
2026年8月29日 11:48
检测到的 SKILL.md 语言
英语
星标
1,862
分支
596

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
visual-test
description
Run or add Playwright visual specs and know when a layout or CSS change needs npm run test:visual. Use after first-paint, panel-layout, or PurgeCSS safelist changes, or when adding a Playwright case.
# Visual tests Run `npm run test:visual` after a change that affects first paint, panel layout, or a class in [`vite/purgecss-critical-safelist.ts`](../../../vite/purgecss-critical-safelist.ts). Add cases under [`tests/visual/`](../../../tests/visual/). Reuse waits in [`home-helpers.ts`](../../../tests/visual/home-helpers.ts). Wait for catalog readiness via `__LPC_waitCatalogAllReady` (installed in [`sources/install-item-metadata.ts`](../../../sources/install-item-metadata.ts)). Do not import visual specs from `tests/tests.js`. They are not Codecov-instrumented. Argos upload needs `ARGOS_TOKEN`. Isolated run: [run-one-spec](../run-one-spec/SKILL.md). Walkthrough: [Visual regression tests](../../../CONTRIBUTING.md#visual-regression-tests-playwright-argos). CLS measurement is [cls](../cls/SKILL.md) / [CLS.md](../../../CLS.md); Argos does not replace `profile:cls`.
在 GitHub 查看