github.com/hernad/nomad@v1.6.112/e2e/ui/script.sh (about)

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