puppeteer-test
Skill by Tai-ch0802
Guides an assistant in writing Puppeteer and Jest end-to-end tests for a Chrome extension. It covers the side panel, service worker termination and loading the extension with --load-extension. Written for developers who test this repository's extension.
Install puppeteer-test
Built from the published package, never by AI.
git clone --depth 1 https://github.com/Tai-ch0802/arc-like-chrome-extension /tmp/arc-like-chrome-extension && mkdir -p ~/.claude/skills && cp -r /tmp/arc-like-chrome-extension/.agent/skills/puppeteer-test ~/.claude/skills/puppeteer-testRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/Tai-ch0802/arc-like-chrome-extension /tmp/arc-like-chrome-extension && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/arc-like-chrome-extension/.agent/skills/puppeteer-test ~/.gemini/antigravity-cli/skills/puppeteer-testAntigravity 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 is a testing guide for a Chrome extension project that uses Puppeteer and Jest. It explains the npm scripts for E2E, CI, full and unit tests. It shows how the shared setup helper launches the browser with the extension loaded through --load-extension, and how the extension ID is resolved at runtime. It also covers testing the side panel, a service worker termination pattern and the Jest configuration.
The guide is written for developers who write or maintain E2E tests in this repository. It tells the assistant to reuse the helpers in setup.js instead of calling puppeteer.launch directly, and it describes the test folder layout. It notes that the manifest has no key field, so the extension ID is not fixed. The skill is meant for requests about Puppeteer tests, E2E tests or testing an extension.
Written from the project's SKILL.md and checked against it.
What it can do
- Run E2E testsExplains the npm scripts for E2E, CI, full and unit test runs.
- Load the extensionShows how setupBrowser launches Chrome with --load-extension and a headless mode.
- Resolve extension IDGets the extension ID at runtime from the service worker target URL.
- Test the side panelOpens the side panel page and checks rendered DOM elements.
- Service worker terminationGives a pattern for stopping a service worker and checking recovery.
- Jest configurationDescribes the Jest config, timeouts, ESM transform and test ignore rules.
- Shared test helpersLists the helpers in setup.js to reuse instead of custom race handling.
What you need
- npm
- Puppeteer
- Jest
- Chrome 112 or later for the new headless mode
Try asking
- Write a Puppeteer test that checks the side panel tab list renders
- Add a service worker termination test to the E2E suite
- Explain how setupBrowser loads the extension for my tests
Good to know
- Old headless: true mode does not load extensions, so headless: 'new' is required.
- The extension ID changes on each load because manifest.json has no key field.
- The current E2E suite has no service worker termination test; the example is a general pattern.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agent/skills/puppeteer-test/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to puppeteer-test
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
puppeteer-test: common questions
Why should the extension ID not be hardcoded in tests?
The manifest has no key field, so the ID is generated at runtime and can differ per load. The guide says to take extensionId from setupBrowser() instead.
Which headless mode does Puppeteer need to load the extension?
The source says the new headless mode, headless: 'new', is needed because the old headless: true mode does not support loading extensions. It cites Chrome 112 or later.
Why use Puppeteer instead of Selenium for service worker tests?
The source says ChromeDriver attaches a debugger to all service workers, which stops them from terminating automatically. Puppeteer avoids this problem.
How do I install puppeteer-test?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is puppeteer-test free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is puppeteer-test safe to use?
It scores 58 of 100. Grades: maintenance A, licence A, quality C. 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 puppeteer-test?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
