github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/e2e/ui/script.sh (about)

     1  #!/usr/bin/env bash
     2  # we can't simply run 'npm playwright test' because of a bug in either
     3  # NPM or playwright where we get either an interactive prompt or (with
     4  # --yes) a permission denied error when trying to invoke
     5  # playwright. Rather than trying to fix the NPM ecosystem, we'll just
     6  # install and run as separate script steps in the container.
     7  
     8  [[ $1 == "--no-install" ]] || npm install -D @playwright/test
     9  npx playwright test