mirror of
https://github.com/grafana/grafana.git
synced 2024-11-21 16:38:03 -06:00
db122e9b2c
* Split suite1 to multiple e2e test suites * Update drone yaml * Add missing arg * Extract cypress install step * Change image on e2e tests step * Sync with main * Add cypress cache volume * Try with grafana/ci-e2e:12.19.0-1 image * Update grabpl version to 2.7.2 * Revert a11y failure back to 'always'
34 lines
771 B
Bash
Executable File
34 lines
771 B
Bash
Executable File
#!/bin/bash
|
|
set -xeo pipefail
|
|
|
|
. e2e/variables
|
|
|
|
HOST=${HOST:-$DEFAULT_HOST}
|
|
PORT=${PORT:-$DEFAULT_PORT}
|
|
|
|
echo -e "Starting Cypress scenarios"
|
|
|
|
args=("$@")
|
|
|
|
CMD="start"
|
|
PARAMS=""
|
|
SLOWMO=0
|
|
URL=${BASE_URL:-"http://$HOST:$PORT"}
|
|
|
|
if [ "$1" == "debug" ]; then
|
|
echo -e "Debug mode"
|
|
SLOWMO=1
|
|
PARAMS="--no-exit"
|
|
fi
|
|
|
|
if [ "$1" == "dev" ]; then
|
|
echo "Dev mode"
|
|
CMD="open"
|
|
fi
|
|
|
|
cd packages/grafana-e2e
|
|
|
|
yarn $CMD --env BASE_URL=$URL,SLOWMO=$SLOWMO \
|
|
--config defaultCommandTimeout=30000,integrationFolder=../../e2e/"${args[0]}"/specs,screenshotsFolder=../../e2e"${args[0]}"/screenshots,videosFolder=../../e2e/"${args[0]}"/videos,fileServerFolder=./cypress,viewportWidth=1920,viewportHeight=1080,trashAssetsBeforeRuns=false,videoUploadOnPasses=false \
|
|
$PARAMS
|