How ashishrawat123/playwright-jenkins works
This repository is a Playwright UI/API test automation project, with an additional documented workflow for turning Jira requirements into tests and analyzing failed runs with Gemini. The main execution path is Playwright configuration into UI or API test suites; page objects and API helpers support those tests. The README documents the agent handoff, while the sampled script shows failure analysis. Several test files and agent instructions were not sampled, so their internal calls are not inferred.
Main entry points: playwright.config.ts Playwright runner · ai-analyze.js Failure analyzer · test-requirement-planner.agent.md Test planner agent · Jira-requirement-reader.agent.md Jira reader agent
Components 24
Test execution
- Playwright runner
playwright.config.ts - UI test suite
tests - API test suite
api - Example test
tests/example.spec.ts - Test fixtures
Fixtures/fixtures.ts
UI automation
- Login tests
tests/login.spec.ts - Profile tests
tests/myInfo.spec.ts - Login page
pages/LoginPage.ts - Profile page
pages/MyInfoPage.ts - Load helpers
helpers/commonHelper.ts
API automation
- List users
api/listUser.spec.ts - User CRUD flow
api/goRestCURDFlow.spec.ts - Chained data
api/chaningData.spec.ts - API request helper
helpers/apiUtils.ts - User models
models/userDetails.ts
AI assistance
- Jira reader agent
Jira-requirement-reader.agent.md - Test planner agent
test-requirement-planner.agent.md - Failure analyzer
scripts/ai-analyze.js
Other components
- Jira MCP
- Copilot approval
- Playwright MCP
- Playwright results
- Gemini API
- AI analysis output
Connections 12
- Playwright runner → UI test suite: discovers tests
playwright.config.ts - Playwright runner → API test suite: discovers tests
playwright.config.ts - Playwright runner → Playwright results: writes reports
playwright.config.ts - Profile page → Load helpers: uses waits
pages/MyInfoPage.ts - API request helper → Gemini API
- Jira reader agent → Jira MCP: reads tickets
Readme.md - Jira reader agent → Test planner agent: passes output
Readme.md - Test planner agent → Copilot approval: requests approval
Readme.md - Test planner agent → Playwright MCP: creates tests
Readme.md - Failure analyzer → Playwright results: reads failures
scripts/ai-analyze.js - Failure analyzer → Gemini API: sends analysis
scripts/ai-analyze.js - Failure analyzer → AI analysis output: writes report
scripts/ai-analyze.js