write-e2e-tests
Skill162 starsChanged 11 days agoApache-2.0View on GitHub
Write or fix e2e tests for a `bq-*` component with `@stencil/vitest` in browser mode, covering props, slots, events, methods, keyboard, accessibility attributes and CSS. Use when adding coverage or fixing failing e2e tests. For shared utilities use write-unit-tests.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- igorescodro/alkaatheir own version, first seen Oct 8, 2026
- tldraw/tldrawtheir own version, first seen Oct 8, 2026
- akunzai/agent-skillstheir own version, first seen Sep 19, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- tldraw/tldraw★ 51ksame name
- igorescodro/alkaa★ 1.6ksame name
- akunzai/agent-skills★ 5same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository10 other files it gives its agents.
- AGENTS.mdAGENTS.md
- create-componentSkill
- doc-componentSkill
- fix-accessibilitySkill
- pr-checklistSkill
- review-componentSkill
- review-docSkill
- write-storiesSkill
- write-unit-testsSkill
- beeqSkill
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 3 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 19
Read the full testing instructions
- Very specific: line 20
Read the component's .tsx file to understand all @Prop(), @Event(), @Method(), and @Listen() members
- Very specific: line 21
Check an existing well-tested file for patterns, e.g.
- Very specific: line 25
Create packages/beeq/src/components/<name>/__tests__/bq-<name>.e2e.tsx (see the testing instructions for location, imports and conventions).
- Very specific: line 26
Start with the baseline tests (should render, should have shadow root).
- Distinctive: line 27
Add at least one test for each coverage category that applies to the component, as listed in the testing instructions: props, slots, …
- Very specific: line 28
Follow the conventions in the testing instructions for casting, setProps, async stability, attribute matchers and mock cleanup.
- Distinctive: line 29
Run the tests (below) and fix failures before finishing.
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Write BEEQ E2E Tests
When to Use
- Adding E2E tests for a new or existing
bq-*component - Fixing failing E2E tests after a component change
- Increasing coverage for untested props, events, or interactions
Before You Start
- Read the full testing instructions
- Read the component's
.tsxfile to understand all@Prop(),@Event(),@Method(), and@Listen()members - Check an existing well-tested file for patterns, e.g.
packages/beeq/src/components/button/__tests__/bq-button.e2e.tsx
Procedure
- Create
packages/beeq/src/components/<name>/__tests__/bq-<name>.e2e.tsx(see the testing instructions for location, imports and conventions). - Start with the baseline tests (
should render,should have shadow root). - Add at least one test for each coverage category that applies to the component, as listed in the testing instructions: props, slots, events, methods, keyboard, state, accessibility and CSS.
- Follow the conventions in the testing instructions for casting,
setProps, async stability, attribute matchers and mock cleanup. - Run the tests (below) and fix failures before finishing.
Running the Tests
# Run all e2e tests
pnpm exec nx run beeq:e2e
# Run tests for a specific file
pnpm exec nx run beeq:e2e -- bq-<component>.e2e.tsx
# Watch mode
pnpm exec nx run beeq:e2e -- bq-<component>.e2e.tsx --watchDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

