web_testing.yamlโข2.47 kB
name: "Web Testing with Playwright"
description: "Automated web testing using Gemini with Playwright and Chrome DevTools"
steps:
- id: analyze_page
agent: gemini
task: "Analyze the web page at {{ url }} using Playwright. Identify key UI elements, forms, buttons, and navigation. Use Chrome DevTools to inspect the page structure."
output: page_analysis
description: "Analyze page structure and elements"
- id: create_test_plan
agent: claude
task: "Based on this page analysis: {{ page_analysis }}, create a comprehensive test plan. Include: 1) Functional tests 2) UI/UX tests 3) Accessibility tests 4) Performance tests."
output: test_plan
condition: "{{ page_analysis | length > 0 }}"
description: "Create comprehensive test plan"
- id: implement_tests
agent: gemini
task: "Implement Playwright tests for this plan: {{ test_plan }}. Use async/await, proper selectors, and assertions. Include screenshot capture on failures. Use allowed-tools: run_shell_command,WebFetch for testing."
output: test_code
condition: "{{ test_plan | length > 0 }}"
description: "Implement Playwright test suite"
- id: run_tests
agent: gemini
task: "Execute the Playwright tests: {{ test_code }}. Run with --headed mode for visibility. Capture screenshots and generate a test report."
output: test_results
condition: "{{ test_code | length > 0 }}"
description: "Execute test suite"
- id: analyze_failures
agent: claude
task: "Analyze test failures from: {{ test_results }}. Categorize issues: 1) Bugs 2) Accessibility issues 3) Performance problems 4) UX concerns. Provide actionable recommendations."
output: failure_analysis
condition: "{{ test_results | length > 0 }}"
description: "Analyze failures and provide recommendations"
- id: generate_report
agent: claude
task: "Generate a comprehensive test report. Include: Executive summary, test coverage, pass/fail rates, critical issues: {{ failure_analysis }}, and next steps."
output: final_report
condition: "{{ failure_analysis | length > 0 }}"
description: "Generate final test report"
metadata:
category: testing
difficulty: advanced
estimated_duration: 480
tags:
- web-testing
- playwright
- automation
- qa
requirements:
- Playwright installed (npm install -g playwright)
- Chrome/Chromium browser
- Gemini with WebFetch and run_shell_command tools enabled