open-nomad/e2e/ui/script.sh
Tim Gross 2ad9f6bc5f
E2E: playwright configuration and smoke test (#12721)
Scripts for running playwright tests in a Docker container that has
chromium and webkit preinstalled. Includes a basic smoke test for
authentication so that we can be sure the test rig is working
end-to-end. Wiring this up in CI will be in an upcoming PR.
2022-04-21 09:13:10 -04:00

10 lines
433 B
Bash

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