
adragich/playwright本镜像基于官方Playwright Dockerfile构建,集成了yarn包管理器,并以root用户权限运行。已在Gitlab CI环境中通过Playwright v1.1.1测试验证,支持Chromium、Firefox和Webkit浏览器的主流功能测试场景。
bashdocker run -it --rm \ -v $(pwd):/workspace \ -w /workspace \ [镜像名称] \ yarn install && npx playwright test
在.gitlab-ci.yml中集成:
yamlplaywright-test: image: [镜像名称] stage: test script: - yarn install - npx playwright install # 确保浏览器依赖已安装 - npx playwright test # 执行测试 artifacts: paths: - playwright-report/ # 保存测试报告 when: always
/workspace目录yarn install安装项目依赖npx playwright install安装浏览器二进制文件npx playwright test命令运行测试套件
manifest unknown 错误
TLS 证书验证失败
DNS 解析超时
410 错误:版本过低
402 错误:流量耗尽
身份认证失败错误
429 限流错误
凭证保存错误
来自真实用户的反馈,见证轩辕镜像的优质服务