mirror of
https://github.com/microsoft/calculator.git
synced 2025-03-12 04:35:52 -07:00
* Squashed commit of the following: commit a7d403386e3df430edf67d89ca23f81313022d2d Author: Tian Liao <tilia@microsoft.com> Date: Mon Aug 12 16:58:30 2024 +0800 remove pfx from ignore list commit 26ffa46d9a92dcbadc9d9d471715fdec10c6f013 Author: Tian Liao <tilia@microsoft.com> Date: Mon Aug 12 16:58:07 2024 +0800 Remove PFXs * fix yaml * fix gh action * fix gh action
57 lines
1.8 KiB
YAML
57 lines
1.8 KiB
YAML
# This template contains jobs to run UI tests using WinAppDriver.
|
|
|
|
parameters:
|
|
isOSSBuild: false
|
|
platform: ''
|
|
runsettingsFileName: ''
|
|
|
|
jobs:
|
|
- job: UITests${{ parameters.platform }}
|
|
displayName: UITests ${{ parameters.platform }}
|
|
dependsOn: Build${{ parameters.platform }}
|
|
condition: succeeded()
|
|
pool:
|
|
${{ if eq(parameters.isOSSBuild, true) }}:
|
|
name: EssentialExperiencesOpenSource-Win11
|
|
${{ if eq(parameters.isOSSBuild, false) }}:
|
|
name: EssentialExperiences-Win11
|
|
variables:
|
|
skipComponentGovernanceDetection: true
|
|
DropName: drop-${{ parameters.platform }}
|
|
|
|
steps:
|
|
- checkout: self
|
|
fetchDepth: 1
|
|
|
|
- task: PowerShell@2
|
|
displayName: Turn off animation effects
|
|
inputs:
|
|
filePath: $(Build.SourcesDirectory)\build\scripts\TurnOffAnimationEffects.ps1
|
|
|
|
- task: ScreenResolutionUtility@1
|
|
displayName: Set resolution to 1920x1080
|
|
inputs:
|
|
displaySettings: 'specific'
|
|
width: 1920
|
|
height: 1080
|
|
|
|
- download: current
|
|
displayName: Download MsixBundle and CalculatorUITests
|
|
artifact: $(DropName)
|
|
patterns: |
|
|
Calculator/AppPackages/**
|
|
publish/**
|
|
|
|
- powershell: |
|
|
$(Build.SourcesDirectory)/build/scripts/SignTestApp.ps1 -AppToSign '$(Pipeline.Workspace)/$(DropName)/Calculator/AppPackages/Calculator_*_Test/Calculator_*.msixbundle'
|
|
$(Pipeline.Workspace)/$(DropName)/Calculator/AppPackages/Calculator_*_Test/Add-AppDevPackage.ps1 -Force
|
|
displayName: Install app
|
|
|
|
- task: VSTest@2
|
|
displayName: Run CalculatorUITests
|
|
inputs:
|
|
testAssemblyVer2: $(Pipeline.Workspace)/$(DropName)/publish/CalculatorUITests.dll
|
|
runSettingsFile: $(Pipeline.Workspace)/$(DropName)/publish/${{ parameters.runsettingsFileName }}
|
|
platform: ${{ parameters.platform }}
|
|
configuration: Release
|