tldraw/scripts/e2e-run-ci
Orange Mug 2dbfda1285
Added initial webdriver tests (#1337)
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
2023-05-09 20:21:45 +00:00

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