Skip to main content

generate-regression-test

Generate an Incidents Cypress regression test from a documented test-flow section. Use when the user names a section under docs/incident_detection/tests or asks to automate one.

来源信息

仓库
openshift/monitoring-plugin
最近来源活动
2026年9月23日 12:59
检测到的 SKILL.md 语言
英语
星标
12
分支
71

安装方式

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

检查来源文件

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

文件资源管理器
2 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
generate-regression-test
description
Generate an Incidents Cypress regression test from a documented test-flow section. Use when the user names a section under docs/incident_detection/tests or asks to automate one.
# Generate an Incidents regression test Require a section identifier or an unambiguous documented flow. Before editing, read: - `.agents/references/incidents-testing-guidelines.md`; - the matching file under `docs/incident_detection/tests/`; - `web/cypress/views/incidents-page.ts`; - nearby tests under `web/cypress/e2e/incidents/regression/`; - [references/generation-guide.md](references/generation-guide.md) for the preserved detailed workflow and examples. Reuse an existing fixture when suitable. If a new fixture is required, explain the required data and obtain the user's approval before creating it; then read `.agents/skills/generate-incident-fixture/SKILL.md` and follow that workflow. Use existing page-object selectors and methods. If required page-object support is missing, propose the addition and wait for approval before changing the page object. Preserve the current policy of automated assertions plus `cy.pause()` at key verification points for newly generated tests. Run the narrowest relevant formatting, type, or Cypress check available, then report the generated file, fixture use, and anything still requiring manual verification.
在 GitHub 查看