playwright/installation-tests/test_playwright_global_installation.sh

15 lines
397 B
Bash
Raw Normal View History

#!/bin/bash
source ./initialize_test.sh && initialize_test "$@"
BROWSERS="$(pwd -P)/browsers"
npm_i playwright-core
PLAYWRIGHT_BROWSERS_PATH="${BROWSERS}" npm_i playwright
if [[ ! -d "${BROWSERS}" ]]; then
echo "Directory for shared browsers was not created!"
exit 1
fi
echo "Running sanity.js"
node sanity.js playwright none
PLAYWRIGHT_BROWSERS_PATH="${BROWSERS}" node sanity.js playwright