antiwork/shortest

QA via natural language AI tests

What it solves

Shortest simplifies end-to-end (E2E) testing by allowing developers to write test cases in natural language instead of complex, brittle scripts. It reduces the effort required to maintain tests as the UI changes, as the AI handles the execution logic.

How it works

Built on top of Playwright, the framework uses the Anthropic Claude API to interpret natural language descriptions of test steps and execute them in the browser. It can handle complex flows like GitHub 2FA logins and API endpoint validation. Developers can also integrate custom callback functions for database assertions or use lifecycle hooks to manage test state.

Who it’s for

Software engineers and QA testers who want to speed up the creation of E2E tests and reduce the maintenance overhead associated with traditional selector-based testing.

Highlights

  • Natural Language Execution: Write tests as simple strings (e.g., "user can login with email and password").
  • AI-Powered: Leverages Claude to drive browser interactions.
  • Flexible Chaining: Supports sequential test chains and reusable test flows.
  • Extensible: Includes .after() callbacks for custom logic and standard lifecycle hooks (beforeAll, beforeEach, etc.).
  • API Testing: Supports testing API endpoints using natural language descriptions.
  • Integration Support: Built-in support for GitHub 2FA and Mailosaur for email validation.

Related

  • Project
  • Project
  • Project
  • Project
  • Project