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
- Install the extension in your Azure DevOps organization
- Add the Playwright for Power Platform task to your pipeline
- 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)'