xvfb-run:在 chrome:headless 模式下找不到命令

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

我正在尝试将 testcafe 的 CI 集成到 github 操作中。 我们的跑步者没有 xvfb。所以我们试图在无头模式下运行以避免 xvfb 错误。但我们仍然得到 命令失败:xvfb-run --server-args="-screen 0 1280x720x24" npx testcafe chrome:headless src/automationTests/sampleTest.ts 是否可以在无头模式下不使用 xvfb 的情况下在 CI 中运行 testcafe?

      - name: code checkout
        uses: actions/checkout@v3
      - uses: DevExpress/testcafe-action@latest
        with:
          args: "chrome:headless src/automationTests/sampleTest.ts"```
This is what we tried. we are expecting to do this successfully without installing xvfb.
continuous-integration github-actions testcafe headless-browser xvfb
© www.soinside.com 2019 - 2024. All rights reserved.