netlify / cli

Netlify Command Line Interface
http://cli.netlify.com
MIT License
1.56k stars 343 forks source link

Error when running Playwright tests on 17.26.1 #6713

Open KCM78 opened 3 weeks ago

KCM78 commented 3 weeks ago

Describe the bug

Getting the error

Error: Command failed with exit code 1: npx playwright test

when running plugin to execute Playwright tests with netlify-cli v17.26.1

Additional error included:

Error: Process from config.webServer was not able to start. Exit code: 1

Steps to reproduce

  1. Plugin to run Playwright tests in the onSuccess build step using await utils.run.command("npx playwright test")
  2. Run as part of build
  3. Plugin error received in deployment, with the error Error: Command failed with exit code 1: npx playwright test
  4. Reverting to v17.26.0 works as expected

Configuration

No response

Environment

System: OS: Linux 5.15 Ubuntu 20.04.6 LTS (Focal Fossa) CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz Memory: 11.16 GB / 15.51 GB Container: Yes Shell: 5.8 - /usr/bin/zsh Binaries: Node: 20.12.2 - ~/.nvm/versions/node/v20.12.2/bin/node Yarn: 1.22.22 - ~/.nvm/versions/node/v20.12.2/bin/yarn npm: 10.5.0 - ~/.nvm/versions/node/v20.12.2/bin/npm npmPackages: netlify-cli: 17.26.0 => 17.26.0