如何在azure pipeline中指定playwright chromium版本

问题描述 投票:0回答:1

我们在 azure 中有一个管道,作为流程的一部分运行一组 Playwright 测试。 直到几天前,使用以下 PowerShell 脚本作为管道的一部分,该方法一直运行良好。

npm install 
npx playwright install

这是工作响应

Downloading Chromium 125.0.6422.26 (playwright build v1117)[2m from https://playwright.azureedge.net/builds/chromium/1117/chromium-win64.zip[22m

现在突然变成这样了,我们遇到了问题

Downloading Chromium 127.0.6533.17 (playwright build v1124)[2m from https://playwright.azureedge.net/builds/chromium/1124/chromium-win64.zip[22m

并且版本 126 已被跳过。 Azure 现在无法运行测试,因为它尚不支持 chrome 127。如何指定版本号?

甚至 VS 中的 NuGet 也只提供版本 126 作为更新。 enter image description here

感谢您的建议

azure-devops azure-pipelines playwright
1个回答
0
投票

如何指定版本号?

您可以将 PowerShell 脚本更改为以下脚本以指定使用

[email protected]
版本。

npm install 
npx [email protected] install

然后它将下载

Chromium 125.0.6422.26

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.