Skip to content
Back to skills

E2e Bentefay Moneyflow

ASecurity

Playwright E2E testing patterns. Use when working on files in tests/e2e/.

  • 666 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added February 8, 2026
testingtypescriptgobashtesting

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add majiayu000/claude-skill-registry --skill e2e-bentefay-moneyflow --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of E2e Bentefay Moneyflow?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for E2e Bentefay Moneyflow
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-e2e-bentefay-moneyflow/badge)](https://www.skillsdirectory.com/skills/majiayu000-e2e-bentefay-moneyflow)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: e2e
description: Playwright E2E testing patterns. Use when working on files in tests/e2e/.
---

# E2E Test Guidelines

## Philosophy

- Journey-style tests covering critical flows end-to-end
- **Strongly prefer adding `test.step()` to existing tests** over creating new tests - keeps suite fast and avoids duplicating slow setup flows
- Fix flaky tests immediately, regardless of when introduced

## Commands

```bash
pnpm playwright test --reporter=line --max-failures=1 2>&1
pnpm playwright test --workers=4 --repeat-each=5 --reporter=line 2>&1  # flaky detection
```

**NEVER use `--debug` or `--ui`** - opens GUI, blocks forever. This is a common mistake.

## Selectors (priority order)

1. `getByRole()` 
2. `getByTestId()`
3. `getByLabel()`
4. `getByText(/regex/i)`

## Critical Rules

- **Assert behaviour, not text** - text changes with copy edits/i18n
- **Independent tests** - use `beforeEach`, don't depend on prior test state
- **No arbitrary waits** - use `toBeEnabled()`, not `waitForTimeout()`

## Helpers

Import from `tests/e2e/helpers/`:
- `createNewIdentity(page)` - full new user flow
- `goToTransactions(page)`, `goToTags(page)`, etc.

Create helpers for multi-step reused flows. Don't wrap single Playwright calls.

## Pattern

```typescript
test.describe("Feature", () => {
  test.beforeEach(async ({ page }) => {
    await createNewIdentity(page);
    await goToFeature(page);
  });

  test("should do thing", async ({ page }) => {
    // Arrange → Act → Assert
  });
});
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.