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

Commit cb85487

Browse files
authored
Merge pull request #27 from react-native-windows/webdriverio
dynamic patch for webdriverio
2 parents dc6598b + d277c1a commit cb85487

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.ado/azure-pipelines.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,24 @@ steps:
1313
submodules: true
1414
persistCredentials: false
1515

16+
- task: PowerShell@2
17+
displayName: 'Remove WebDriverIO Workaround'
18+
inputs:
19+
targetType: 'inline'
20+
script: '((Get-Content -path packages/webdriverio/package.json -Raw) -replace ".*webdriver.git.*","") | Set-Content -Path packages/webdriverio/package.json'
21+
1622
- task: CmdLine@2
1723
displayName: yarn install
1824
inputs:
1925
script: yarn install
2026
condition:
2127

22-
- task: DeleteFiles@1
23-
displayName: Delete webdriver from webdriverio to workaround WinAppDriverBug
28+
- task: PowerShell@2
29+
displayName: 'Patch WebDriverIO'
2430
inputs:
25-
SourceFolder: node_modules\webdriverio\node_modules
26-
Contents: webdriver
27-
31+
targetType: 'inline'
32+
script: '((Get-Content -path node_modules/webdriver/build/utils.js -Raw) -replace "if \(!body .*","if (!body) {") | Set-Content -Path node_modules/webdriver/build/utils.js'
33+
2834
- template: templates/buildTestApp.yml
2935

3036
- template: templates/deployTestApp.yml

0 commit comments

Comments
 (0)