ui4-convert-tests
Skill by payloadcms
Guides an agent through updating Payload CMS e2e tests after UI changes. It is for developers who need to fix failing or outdated tests before opening a pull request.
Install ui4-convert-tests
Built from the published package, never by AI.
git clone --depth 1 https://github.com/payloadcms/payload /tmp/payload && mkdir -p ~/.claude/skills && cp -r /tmp/payload/.agents/skills/ui4-convert-tests ~/.claude/skills/ui4-convert-testsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/payloadcms/payload /tmp/payload && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/payload/.agents/skills/ui4-convert-tests ~/.gemini/antigravity-cli/skills/ui4-convert-testsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill walks through fixing e2e tests after changes to UI components. It reads the git diff against main for changed UI files and sorts each change into selector, structural, or text changes. It then searches the test folders for affected tests and component references, runs the tests to confirm the failures, and applies fixes. Fixes include updating locators, opening popups before clicking, and updating text assertions. Shared helpers are preferred when several tests need the same step.
The skill is aimed at contributors to the Payload repository who run the e2e suites with pnpm. It covers running tests on an isolated port, optional Postgres database isolation, and a list of common selectors and cross-suite components.
Written from the project's SKILL.md and checked against it.
What it can do
- Analyze UI diffLists changed UI files and sorts changes into selector, structural, and text categories.
- Find affected testsSearches test folders for component names, feature names, and changed text to find tests to update.
- Plan fixesMaps each change type to a fix strategy, such as direct selector replacement or opening a popup first.
- Apply test fixesShows patterns for updating selectors, adding popup clicks, and simplifying text assertions.
- Create shared helpersSuggests moving repeated test interactions into helper functions so one fix covers many tests.
- Run isolated e2e testsRuns pnpm test:e2e on a chosen PORT and explains MongoDB and Postgres isolation.
What you need
- Git repository with a main branch
- pnpm to run the test:e2e scripts
- MongoDB, which the test run starts in memory by default
- Postgres, only for Postgres test runs
Try asking
- Find e2e tests affected by my changes to the ListControls component
- Update the query preset tests after I moved Edit into the popup
- Run the query-presets e2e suite on port 3150 and stop at the first failure
Good to know
- The source is cut off in the Common Mistakes section about dev server ports.
- Postgres runs need a separate database or schema per worktree to avoid conflicts.
- Tests read the PORT environment variable and default to 3000 if it is not set.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/ui4-convert-tests/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md14 KB
Alternatives to ui4-convert-tests
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
ui4-convert-tests: common questions
When should I use this skill?
Use it after UI changes are finalized and e2e tests need updating, such as when CI fails on tests because of your UI changes.
Does it run the tests before changing them?
Yes. The skill says to run the affected tests before making fixes to confirm they fail, then to run them again after the fixes.
Which test runner does it use?
It uses pnpm test:e2e with Playwright, as shown in the test commands in the source.
How do I install ui4-convert-tests?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is ui4-convert-tests free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is ui4-convert-tests safe to use?
It scores 90 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to ui4-convert-tests?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
