playwright-azure

Connects Playwright tests to Azure Playwright Workspace with authentication and RBAC management.

4|2|Updated Mar 16, 2026
One-click install
npx skills add https://github.com/nickhou1983/UI-test-Demo --skill playwright-azure
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: playwright-azure
Source: https://github.com/nickhou1983/UI-test-Demo/tree/main/.github/skills/playwright-azure
Command: npx skills add https://github.com/nickhou1983/UI-test-Demo --skill playwright-azure

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Manages cloud-based Playwright testing in Azure by providing governance for workspace connectivity, authentication, RBAC, and CI/CD wiring, enabling teams to run tests in Azure Playwright Workspace with controlled administration.

Core Features & Use Cases

  • Azure Playwright Workspace connectivity and authentication handling
  • Cloud execution policy, CI/CD integration, and portal reporting
  • Guidance on when to use Azure PT for E2E and Visual Regression tests (CT is not supported)

Quick Start

Connect to an Azure Playwright Workspace, configure the region endpoint, and choose an authentication method (DefaultAzureCredential or an access token) to begin running tests.

Frequently Asked Questions about playwright-azure

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run Playwright tests in an Azure cloud workspace with RBAC governance?

You can run Playwright tests in an Azure cloud workspace by connecting to the Azure Playwright Workspace endpoint, configuring RBAC authentication via DefaultAzureCredential or an access token, and integrating the execution policy with your CI/CD pipeline.

What types of Playwright tests are supported by Azure cloud execution?

Azure cloud execution supports end-to-end and visual regression testing in Azure Playwright Workspace. Component tests are not supported because they require a local server to run.

Do I need a specific config file to connect Playwright to an Azure workspace?

Yes, you need a service config template named playwright.service.config.ts to define your Azure Playwright Workspace connectivity, region endpoint, and authentication method before running tests.

Can I use DefaultAzureCredential to authenticate Playwright cloud tests in Azure?

Yes, DefaultAzureCredential is a supported authentication method for connecting to Azure Playwright Workspace, alongside the option to use a direct access token for cloud test execution.

Why are my Playwright component tests failing in Azure Playwright Workspace?

Playwright component tests fail in Azure Playwright Workspace because the cloud execution environment does not support them, as component tests require a local server to function.

What's the best way to integrate Azure Playwright cloud testing into a CI/CD pipeline?

The best way to integrate Azure Playwright testing into CI/CD is to configure the cloud execution policy and workspace authentication in your playwright.service.config.ts, enabling portal reporting for your pipeline.