2dbfda1285
Adds webdriver tests for testing from a users perspective via browser actions. We currently support local test runners for a bunch of actions on desktop `chrome`/`firefox`/`edge`/`safari` on macos. We also have a browserstack runner which we'll enable in another PR. ### Release Note - Adds initial webdriver tests
14 lines
No EOL
279 B
Text
Executable file
14 lines
No EOL
279 B
Text
Executable file
set -eux
|
|
export ENABLE_SSL=1
|
|
export ENABLE_NETWORK_CACHING=1
|
|
yarn workspace @tldraw/tldraw prebuild
|
|
SHELL=/bin/bash nohup yarn dev-webdriver &
|
|
PROCCESS_PID="$!"
|
|
|
|
mode="${1:-local}"
|
|
sleep 5
|
|
yarn workspace @tldraw/e2e "test:${mode}"
|
|
exit_code=$?
|
|
|
|
kill $PROCCESS_PID
|
|
exit $exit_code |