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
This commit is contained in:
parent
28c8cb9c5f
commit
2dbfda1285
57 changed files with 8760 additions and 137 deletions
14
scripts/e2e-run-ci
Executable file
14
scripts/e2e-run-ci
Executable file
|
@ -0,0 +1,14 @@
|
|||
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
|
9
scripts/e2e-run-tests
Executable file
9
scripts/e2e-run-tests
Executable file
|
@ -0,0 +1,9 @@
|
|||
#!/usr/bin/env bash
|
||||
set -eux
|
||||
|
||||
mode="${1:-local}"
|
||||
export BROWSERS="${2:-chrome}"
|
||||
# if [[ "$mode" == "remote" ]]; then
|
||||
# export ENABLE_SSL=1
|
||||
# fi
|
||||
yarn workspace @tldraw/e2e "test:${mode}"
|
3
scripts/e2e-start-server
Executable file
3
scripts/e2e-start-server
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/env bash
|
||||
set -eux
|
||||
yarn dev-webdriver
|
Loading…
Add table
Add a link
Reference in a new issue