Blenra
Optimized for: Gemini / ChatGPT / Claude

Advanced AI Prompt for Playwright E2E Testing Pipeline

Use this engineered prompt to drastically optimize your workflow and output.

Required Variables

  • [BASE_URL]
  • [BROWSER_TYPES]
  • [SHARD_COUNT]
playwright-e2e-testing-pipeline.txt
Construct a GitHub Actions workflow for End-to-End testing using Playwright. The workflow should: 1) Install dependencies and Playwright browsers. 2) Implement sharding across [SHARD_COUNT] parallel jobs to speed up execution. 3) Run tests against [BASE_URL] for [BROWSER_TYPES]. 4) Upload Playwright HTML reports and trace files as artifacts on failure. 5) Use a persistent storage cache for browsers to decrease setup time.

Example Output

"A parallelized testing YAML using 'strategy: matrix' for sharding and 'actions/upload-artifact' for failure debugging."