Setup e2e testing

From redpanda-data/ui-harness · View interactive version

Setup e2e testing is an AI agent skill from the GitHub repository redpanda-data/ui-harness. Set up Playwright + Testcontainers + axe-core for e2e and accessibility testing. Includes patterns for forms, tables, workflows. Use when setting up e2e tests or writing Playwright tests.

How to use this skill

Skill file

E2E Testing

Conventions

Accessibility -- axe on every page

import { test, expect } from '../fixtures/base'
test('page is accessible', async ({ page, makeAxeBuilder }) => {
  await page.goto('/topics/create')
  const results = await makeAxeBuilder().analyze()
  expect(results.violations).toEqual([])
})

Monitor for E2E

Monitor: bun run test:e2e -- stream results, react fail before suite finish.

Agent-Browser vs Playwright

| Task | Tool |

|------|------|

| Test suites | Playwright via Monitor: bun run test:e2e |

| Generate selectors | agent-browser snapshot (a11y tree) |

| Visual smoke test | agent-browser screenshot --annotate |

| Interactive debug | Playwright UI mode |

| CI | Playwright |

| AI page inspection | agent-browser |

Setup (install, config, fixtures, Testcontainers): see SETUP.md.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.