Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

writing-playwright-tests

Skill by Comfy-Org

Writes Playwright end-to-end tests for the ComfyUI_frontend repository. It helps developers create, modify, and debug browser tests using the project's fixtures, assets, and conventions.

  • Score 77
  • 2.1k stars
  • GPL-3.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install writing-playwright-tests

Built from the published package, never by AI.

git clone --depth 1 https://github.com/Comfy-Org/ComfyUI_frontend /tmp/ComfyUI_frontend && mkdir -p ~/.claude/skills && cp -r /tmp/ComfyUI_frontend/.claude/skills/writing-playwright-tests ~/.claude/skills/writing-playwright-tests

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install writing-playwright-tests in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill gives an AI assistant the conventions for writing Playwright e2e tests in the ComfyUI_frontend repository. It points the assistant to existing tests in browser_tests/tests/ and to the fixture code in browser_tests/fixtures/ before it writes anything. It covers how to load premade JSON workflow assets, how to seed starting settings with test.use, and when to use the Vue Nodes API versus the LiteGraph canvas API.

The skill also lists common causes of flaky tests, test tags, retry patterns, screenshot baseline rules, CI debugging steps, and anti-patterns to avoid. It is written for developers and contributors who work on browser tests in that repository.

Written from the project's SKILL.md and checked against it.

What it can do

  • Existing test lookupDirects the assistant to search browser_tests/tests/ for similar patterns before writing new tests.
  • Workflow asset loadingLoads premade JSON workflows with comfyPage.workflow.loadWorkflow from browser_tests/assets/.
  • Vue Nodes vs LiteGraph choiceExplains when to use comfyPage.vueNodes.* versus comfyPage.nodeOps.* for a test.
  • Starting settingsShows how to seed settings with test.use({ initialSettings }) and avoid afterEach resets.
  • Test tagsLists tags such as @smoke, @slow, @screenshot, @canvas, @mobile and @2x for test selection.
  • Retry patternsCovers auto-retrying assertions, expect.poll(), and expect().toPass() in place of fixed waits.
  • Screenshot baselinesDescribes capturing only the area under test with expectElementScreenshot and expectRegionScreenshot.
  • CI debuggingLists steps to download artifacts, view Playwright traces, and reproduce CI runs locally.
  • Flaky test checklistMaps common symptoms, such as missing nextFrame or keyboard focus, to typical fixes.

What you need

  • ComfyUI_frontend repository with its browser_tests directory
  • pnpm for running browser tests

Try asking

  • Write a Playwright test that loads a workflow and checks a KSampler node.
  • Help me debug a flaky canvas drag test in browser_tests.
  • Add a screenshot test for a dialog using expectElementScreenshot.

Good to know

  • Screenshots are Linux-only, so local screenshots may not match CI.
  • Spec files cannot use toHaveScreenshot, because lint rejects it.
  • Vue Nodes must be enabled through the fixture tag, not by setting Comfy.VueNodes.Enabled manually.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .claude/skills/writing-playwright-tests/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to writing-playwright-tests

All alternatives →
openclaw-github-repo-commandersickn33
94

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.

AAA Skill 50k
gradiogradio-app
94

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.

AAA Skill 44k
hig-components-menussickn33
94

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.

AAA Skill 50k
fastapi-templateswshobson
94

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.

AAA Skill 43k
appfunctionsandroid
94

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.

AAA Skill 11k
agent-qa-authoringsickn33
94

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.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

writing-playwright-tests: common questions

How do I write a Playwright test for ComfyUI_frontend?

Look at existing tests in browser_tests/tests/ and read the fixture code in browser_tests/fixtures/ first. Then load workflow assets with comfyPage.workflow.loadWorkflow.

How do I update screenshot baselines?

Add the PR label New Browser Test Expectations or comment /update-playwright on the pull request. Use /update-playwright full to rerun Playwright when one test has several changed screenshots.

Should I use Vue Nodes or LiteGraph in my test?

Choose based on what you are testing. Use comfyPage.vueNodes for DOM-rendered node UI and CSS states, and comfyPage.nodeOps for canvas interactions and connections.

How do I install writing-playwright-tests?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is writing-playwright-tests free?

The code is published under the GPL-3.0 licence. The service it connects to may have its own pricing.

Is writing-playwright-tests safe to use?

It scores 77 of 100. Grades: maintenance A, licence C, 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 writing-playwright-tests?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

writing-playwright-tests Install

Add to stack

Loading.