mirror of
https://github.com/grafana/grafana.git
synced 2024-11-21 16:38:03 -06:00
75d7f9072c
* WIP: started e2e tests for bar gauge * Updated * Updated * Updated cypress from 3.7 -> 4.1 * reverted cypress upgrade * Updated test * Update e2e docs * Updated docs
31 lines
757 B
Bash
Executable File
31 lines
757 B
Bash
Executable File
#!/bin/bash
|
|
|
|
. e2e/variables
|
|
|
|
echo -e "Waiting for grafana-server to finish starting"
|
|
|
|
timeout 60 bash -c 'until nc -z $0 $1; do sleep 1; done' localhost $PORT
|
|
|
|
echo -e "Starting Cypress scenarios"
|
|
|
|
CMD="start"
|
|
PARAMS=""
|
|
SLOWMO=0
|
|
|
|
if [ "$1" == "debug" ]; then
|
|
echo -e "Debug mode"
|
|
SLOWMO=1
|
|
PARAMS="--headed --no-exit"
|
|
fi
|
|
|
|
if [ "$1" == "dev" ]; then
|
|
echo "Dev mode"
|
|
CMD="open"
|
|
fi
|
|
|
|
cd packages/grafana-e2e
|
|
|
|
yarn $CMD --env BASE_URL=http://localhost:$PORT,CIRCLE_SHA1=$CIRCLE_SHA1,SLOWMO=$SLOWMO \
|
|
--config integrationFolder=../../e2e/suite1/specs,screenshotsFolder=../../e2e/suite1/screenshots,videosFolder=../../e2e/suite1/videos,fileServerFolder=./cypress,viewportWidth=1920,viewportHeight=1080,trashAssetsBeforeRuns=false \
|
|
$PARAMS
|