Refactor regression test

From openshift/monitoring-plugin · View interactive version

Refactor regression test is an AI agent skill from the GitHub repository openshift/monitoring-plugin. Refactor an existing Incidents Cypress regression test while preserving behavior and its manual-verification state. Use when the user asks to clean up or reorganize such a test.

How to use this skill

Skill file

Refactor an Incidents regression test

Require the target test file. Before editing, read:

Reduce repetition and improve naming without weakening assertions or changing the scenario. Reuse existing page-object APIs. Ask before adding missing page-object functionality.

Preserve the test's cy.pause() state. Remove pauses only when the user explicitly requests or confirms their removal, and never reintroduce pauses into a test from which they were already removed.

Run the narrowest relevant checks and summarize structural changes separately from behavior changes.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.