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

write-e2e-test

Skill by usebruno

Write-e2e-test guides an AI assistant in writing Playwright end-to-end tests for Bruno. It covers spec placement, fixtures, helpers and test structure. It is for contributors who add or change tests under tests/.

  • Score 89
  • 49k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install write-e2e-test

Built from the published package, never by AI.

git clone --depth 1 https://github.com/usebruno/bruno /tmp/bruno && mkdir -p ~/.claude/skills && cp -r /tmp/bruno/.claude/skills/write-e2e-test ~/.claude/skills/write-e2e-test

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

Step-by-step: install write-e2e-test in Claude Code

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

About

Write-e2e-test is an agent skill that tells an AI assistant how to write Playwright E2E tests for Bruno. It explains where specs go under tests/, which Playwright project to pick (default, auth, ssl or system-pac), and which fixtures and helpers to use from playwright/index.ts and tests/utils/page/. It also covers codegen as a starting point, wrapping steps in test.step, and locator rules that prefer data-testid.

The skill sets rules for test case ids, which go at the start of a test title in the form TC-2606: followed by a description. It also says to restore committed fixtures in afterAll when a test changes them, and it ends with a checklist and the command to run a spec. It is aimed at contributors to the Bruno repository who add tests, change existing ones, or reproduce a bug as an e2e spec.

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

What it can do

  • Spec placementPlaces specs under tests/<area>/ and picks a Playwright project.
  • Codegen draftsRefactors output from npm run test:codegen into a cleaner spec.
  • Fixture useUses fixtures such as page, pageWithUserData and createTmpDir.
  • Helper useUses helpers in tests/utils/page/ such as createCollection, sendRequest and runCollection.
  • Test structureArranges tests with test.step and focused assertions.
  • Test case idsPuts a single mentioned TC id at the start of a test title.
  • Stable locatorsPrefers data-testid and documented classes over brittle selectors.
  • Fixture restoreRestores mutated committed fixtures in afterAll.
  • Running specsGives the npx playwright test command and debug options.

What you need

  • A checkout of the Bruno repository
  • Playwright test setup defined in playwright.config.ts
  • npm and npx to run the test scripts

Try asking

  • Write an e2e test for creating a collection in Bruno
  • Turn this bug report into a Playwright spec under tests/
  • Add a regression e2e test for environment variables

Good to know

  • Specs live in tests/, not e2e-tests/.
  • The skill does not invent test case ids; they must come from the user.
  • Final tests must not contain test.only or page.pause().
  • The @sanity and @regression tags are added only when a type is mentioned.

Security check

A

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

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

Inside the skill

  • SKILL.md5 KB

Alternatives to write-e2e-test

All alternatives →

Compare with antigravity-workflows, e2e-testing-patterns or upgrade-browser

write-e2e-test: common questions

Where do Bruno e2e specs go?

Specs go in tests/<area>/<name>.spec.ts. The skill says to reuse an existing area folder or add one.

Which Playwright projects does Bruno use?

The skill lists default, system-pac, auth and ssl, and says to verify them in playwright.config.ts. Most specs use default.

How are test case ids handled?

When a user mentions an id, it goes at the start of the test title as TC-2606: followed by the description. Each test gets one id.

How do I install write-e2e-test?

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

Is write-e2e-test free?

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

Is write-e2e-test safe to use?

It scores 89 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 write-e2e-test?

Similar skills: antigravity-workflows, e2e-testing-patterns, upgrade-browser, browser-automation.

write-e2e-test Install

Add to stack

Loading.