AI-driven-testing is a lightweight, example repository for experimenting with AI-assisted test planning and automated test generation. The project demonstrates how to structure end-to-end (E2E) tests using Playwright and TypeScript and is intended as a sandbox for exploring new testing techniques and workflows.
This repository contains a small set of Playwright-based E2E tests designed to validate core UI flows against a demo application. It's optimized for quick iterations, reproducible test runs, and integration with AI-driven tooling for test generation and planning.
The tests target the demo application hosted by the repository's upstream dependency: https://github.com/jaktestowac/gad-gui-api-demo. Be sure that demo app is running and reachable (see the playwright.config.ts file for the base URL configuration).
Our Workflow
-
Metaprompt -
.ai-artifacts/agent-plan-draft.md- Our needs gathered in a single file
-
Prompt -
.ai-artifacts/agent-explore-plan.md- Prepared with precise guidelines and an action plan for the Agent
-
Review with MCP -
.playwright-mcp/- MCP helps evaluate the action plan and verifies the real condition of the tested service
-
Test Plan -
docu/TEST_PLAN.md- An artifact not only for humans but also for Agents
- Maintained and continuously improved
-
Reusable Prompt -
.github/prompts/test-from-plan.prompt.md- Fast deployment of a repeatable procedure, improved through subsequent iterations
- Analyze the generated tests and make iterative adjustments to the reusable prompt
- Minimal Playwright + TypeScript setup for fast experimentation
- Example test(s) in
tests/example.spec.tsshowing conventional test structure - Configured
playwright.config.tsfor cross-browser runs and parallel tests - Easy-to-extend structure to try new AI-driven test generation strategies
Prerequisites
- Node.js (recommended version 16 or later)
- npm or Yarn
- A running instance of the demo application (see upstream repository linked above)
Clone the repository
git clone https://github.com/your-org/AI-driven-testing.git
cd AI-driven-testingInstall dependencies
npm ciConfiguration
- Open
playwright.config.tsand confirm thebaseURLvalue or override it using an environment variable or CLI flag if needed.
Run the full test suite
npx playwright testRun a single test file
npx playwright test tests/example.spec.tsRun tests with a headed browser (visible UI)
npx playwright test --headedGenerating artifacts
- Add
--reporter=listor--reporter=htmlto the run command to change output format
Debugging and development tips
- Use
npx playwright test --debugor--traceto capture additional diagnostics - Check
playwright.config.tsfor device emulation, timeouts, and parallelization settings
This project is intentionally small and meant for experimentation. If you'd like to contribute:
- Fork the repository and open a branch for your changes
- Add tests or improve the test runner and configuration
- Keep changes minimal and well-documented in PR descriptions
Please follow standard Git practices and add meaningful test coverage for any bugfixes or features you introduce.
This repository follows the license in the root LICENSE file.
This project references and uses the demo application created by jaktestowac: https://github.com/jaktestowac/gad-gui-api-demo and is inspired by the webinar https://jaktestowac.pl/agents/.