Skip to main content

E2E Engineer Agent

File: .github/agents/tsh-e2e-engineer.agent.md

The E2E Engineer agent creates, maintains, and debugs end-to-end tests using Playwright. It produces reliable, maintainable, and meaningful test suites.

Responsibilities

  • Analyzing the application and designing test scenarios.
  • Implementing Page Objects with accessibility-first locators.
  • Writing comprehensive test files with proper structure.
  • Verifying tests pass consistently (3+ consecutive passes) in headless mode.
  • Debugging flaky tests and ensuring CI readiness.
  • Reporting bugs discovered during testing.

Testing Standards

StandardApproach
LocatorsUse getByRole, getByLabel, getByText. Avoid CSS selectors. getByTestId only as fallback.
SynchronizationBuilt-in auto-waiting assertions. No waitForTimeout(). No networkidle.
Test DataDynamic data with timestamps/UUIDs. No state dependency between tests.
SecurityNever hardcode credentials. Use environment variables.
Namingshould [behavior] when [condition] pattern.
IsolationTests must not depend on state left by previous tests.

Key Behaviors

  • Non-interactive — Makes reasonable decisions and documents them.
  • Strictly follows the plan — Does not deviate unless explicitly instructed.
  • No dead code — Does not create unused test helpers or future-only tests.
  • 3+ consecutive passes — Required before tests are considered stable.

Tool Access

ToolUsage
AtlassianSearch for related test requirements and context (search only)
Context7Search Playwright API docs (library ID: /microsoft/playwright.dev)
FigmaUnderstand expected UI behavior, extract labels for locator strategies
Playwright MCPInspect actual page state, discover locators, understand UI structure
Sequential ThinkingAnalyze complex test scenarios, debug flaky tests, plan mocking strategies
TerminalRun Playwright tests, install dependencies, execute scripts
File Read/Edit/SearchRead, modify, and search workspace files
VS Code CommandsExecute VS Code commands and preview in browser
Sub-agentsDelegate subtasks to specialized agents
TodoTrack testing progress with structured checklists

Skills Loaded

  • tsh-task-analysing — Determine context sources and gather requirements.
  • tsh-e2e-testing — Test structure patterns, Page Object conventions, mocking strategies, verification loop.
  • tsh-technical-context-discovering — Project conventions and test patterns.

Handoffs

After discovering critical bugs, the E2E Engineer can hand off to:

  • Software Engineer/tsh-implement (fix the bug discovered during E2E testing)