gpt4 book ai didi

gitlab - Playwright 在 Gitlab 管道中失败,browserType.launch : Host system is missing dependencies

转载 作者:行者123 更新时间:2023-12-05 05:48:48 34 4
gpt4 key购买 nike

我知道我的问题与此类似 one , 但希望有人能帮助我在 Gitlab 管道中执行 Playwright 测试。

我的 .gitlab-ci.yaml 包含下一行:

image: node:16.13.0
...
test e2e:
stage: test
script:
- npx playwright install
- npm run test-e2e

我能以某种方式设置合适的 docker 镜像或操作系统吗 is supported ..?

enter image description here

最佳答案

在官方文档中有描述 https://playwright.dev/docs/ci#gitlab-ci

您可以像我的情况一样为每个作业设置图像:

test e2e:
stage: test
**image: mcr.microsoft.com/playwright:v1.16.3-focal**
script:
- npx playwright install
- npm run test-e2e

关于gitlab - Playwright 在 Gitlab 管道中失败,browserType.launch : Host system is missing dependencies,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70758120/

34 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com