Getting Started

Getting started

For a detailed walkthrough and additional insights, check out this comprehensive blog post: Running Playwright Tests in Azure DevOps for Power Platform which covers the complete setup process and best practices.

Prerequisites

  • Windows-based Azure DevOps pipeline agent
  • Power Platform app URL
  • Test user credentials
  • Playwright test files (JavaScript/TypeScript)

Installation Steps

  1. Install the extension in your Azure DevOps organization
  2. Add the Playwright for Power Platform task to your pipeline
  3. Configure required parameters (test location, browser, app URL, credentials)

Example Pipeline YAML

pool:
  vmImage: 'windows-latest'

steps:
- task: mightoria-playwrightForPowerPlatform@1
  displayName: 'Run Power Platform Tests'
  inputs:
    testLocation: '$(System.DefaultWorkingDirectory)/tests'
    browser: 'chromium'
    trace: 'retain-on-failure'
    outputLocation: '$(Agent.TempDirectory)/test-results'
    appUrl: 'https://apps.powerapps.com/play/$(AppId)'
    appName: 'MyPowerApp'
    o365Username: '$(TestUser.Email)'
    o365Password: '$(TestUser.Password)'