Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Commit 5d71296

Browse files
authored
Merge pull request #33 from react-native-windows/licanhua-patch-1
Update azure-pipelines.yml
2 parents cb85487 + cb0198c commit 5d71296

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

.ado/azure-pipelines.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,27 @@ steps:
4040
inputs:
4141
WADArguments: 127.0.0.1 4723/wd/hub
4242
AgentResolution: 1080p
43+
44+
- task: PowerShell@2
45+
displayName: 'Start the App'
46+
inputs:
47+
targetType: 'inline'
48+
script: 'start shell:AppsFolder\Microsoft.XAMLControlsGallery_8wekyb3d8bbwe!App'
49+
50+
# Wait for app to launch. A workaround to avoid WinAppDriver error: Failed to locate opened application window with appId
51+
- task: PowerShell@2
52+
displayName: Wait for app to launch
53+
inputs:
54+
targetType: inline # filePath | inline
55+
script: |
56+
Start-Sleep -Seconds 30
4357
58+
- task: PowerShell@2
59+
displayName: 'Check TestApp'
60+
inputs:
61+
targetType: 'inline'
62+
script: 'if ((Get-Process AppUIBasics) -eq $Null) { echo "TestApp is not running"; exit 1}'
63+
4464
- task: CmdLine@2
4565
displayName: Run WebDriverIO test
4666
inputs:
@@ -79,4 +99,4 @@ steps:
7999
displayName: 'Stop - WinAppDriver'
80100
inputs:
81101
OperationType: Stop
82-
condition: succeededOrFailed()
102+
condition: succeededOrFailed()

0 commit comments

Comments
 (0)