mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
Pin browser tests to Chrome 127 (#1187)
This commit is contained in:
12
test/test_env.sh
Executable file
12
test/test_env.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
export GRIST_SESSION_COOKIE="grist_test_cookie"
|
||||
export LANGUAGE="en_US"
|
||||
export SE_BROWSER="chrome"
|
||||
export SE_BROWSER_VERSION="127"
|
||||
export SE_DRIVER="chrome-driver"
|
||||
export SE_DRIVER_VERSION="127.0.6533.119"
|
||||
export TEST_CLEAN_DATABASE="true"
|
||||
export TEST_SUPPORT_API_KEY="api_key_for_support"
|
||||
|
||||
exec "$@"
|
||||
@@ -14,6 +14,8 @@ trap 'cleanup' EXIT
|
||||
trap 'echo "Exiting on SIGINT"; exit 1' INT
|
||||
trap 'echo "Exiting on SIGTERM"; exit 1' TERM
|
||||
|
||||
source $(dirname $0)/test_env.sh
|
||||
|
||||
PORT=8585
|
||||
DOCKER_CONTAINER=grist-core-test
|
||||
DOCKER_PID=""
|
||||
@@ -65,8 +67,6 @@ fi
|
||||
|
||||
TEST_ADD_SAMPLES=1 TEST_ACCOUNT_PASSWORD=not-needed \
|
||||
HOME_URL=http://localhost:8585 \
|
||||
GRIST_SESSION_COOKIE=grist_test_cookie \
|
||||
GRIST_TEST_LOGIN=1 \
|
||||
NODE_PATH=_build:_build/stubs \
|
||||
LANGUAGE=en_US \
|
||||
$MOCHA _build/test/deployment/*.js --slow 6000 -g "${GREP_TESTS:-}" "$@"
|
||||
|
||||
Reference in New Issue
Block a user