azure-microsoft-playwright-testing-ts
Run Playwright Tests on Azure Cloud Browsers
Scale your end-to-end browser tests across Azure's cloud-hosted browsers without managing infrastructure. Integrate with CI/CD pipelines and view results in Azure portal with built-in reporting.
Download the skill ZIP
Upload in Claude
Go to Settings → Capabilities → Skills → Upload skill
Toggle on and start using
Test it
Using "azure-microsoft-playwright-testing-ts". Set up Azure Playwright Testing with default configuration
Expected outcome:
Creates playwright.service.config.ts with createAzurePlaywrightConfig, DefaultAzureCredential for authentication, and HTML reporter enabled before Azure reporter for proper output rendering.
Using "azure-microsoft-playwright-testing-ts". Run tests with 20 parallel workers on Azure
Expected outcome:
Executes npx playwright test --config=playwright.service.config.ts --workers=20, distributing tests across cloud-hosted browsers and displaying results in Azure portal.
Security Audit
Low RiskStatic analysis flagged 60 patterns but all are false positives from Markdown documentation. The skill contains TypeScript code examples for Azure Playwright Testing SDK. External command patterns are npm/bash examples in code blocks, not executable code. Network and environment variable access are legitimate Azure authentication patterns required for the service.
Low Risk Issues (1)
Risk Factors
⚙️ External commands (3)
🌐 Network access (2)
🔑 Env variables (1)
Quality Score
What You Can Build
Enterprise QA Team Scaling Tests
Run large test suites across multiple browser configurations in parallel without maintaining local browser infrastructure. Reduce test execution time from hours to minutes.
CI/CD Pipeline Integration
Add cloud-hosted browser testing to GitHub Actions or Azure Pipelines with automatic authentication and result reporting in Azure portal.
Cross-Browser Compatibility Testing
Execute tests across Chromium, Firefox, and WebKit browsers hosted on Azure infrastructure with consistent environments.
Try These Prompts
Help me set up Azure Playwright Testing for my TypeScript project. I need to configure the package with Entra ID authentication and run my existing Playwright tests on cloud browsers.
Create a GitHub Actions workflow that runs Playwright tests on Azure Playwright Workspaces. Include Azure login step, environment variables for the service URL, and parallel test execution with 20 workers.
My project uses the deprecated @azure/microsoft-playwright-testing package. Help me migrate to @azure/playwright by updating the configuration, authentication, and reporter imports.
Configure Azure Playwright Testing with trace collection on retries, video recording on failures, and custom run names for the Azure portal. Use ServiceOS.LINUX and set connection timeout to 30 seconds.
Best Practices
- Use Entra ID authentication with explicit credential parameter instead of access tokens for better security
- List HTML reporter before Azure reporter in configuration to ensure proper report generation
- Enable trace and video artifacts for debugging failures with trace set to on-first-retry
Avoid
- Do not hardcode access tokens in configuration files - use environment variables or Azure Key Vault
- Avoid running tests without sufficient workers - underutilizes Azure's parallel execution capability
- Do not skip HTML reporter when using Azure reporter - Azure reporter depends on HTML reporter output