Chore: Adds better logging and longer timeout threshold (#33690)

This commit is contained in:
Hugo Häggmark 2021-05-04 14:23:26 +02:00 committed by GitHub
parent c6d4d14a89
commit 810ece57bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View File

@ -28,5 +28,5 @@ fi
cd packages/grafana-e2e
yarn $CMD --env BASE_URL=$URL,SLOWMO=$SLOWMO \
--config integrationFolder=../../e2e/$SUITE/specs,screenshotsFolder=../../e2e/$SUITE/screenshots,videosFolder=../../e2e/$SUITE/videos,fileServerFolder=./cypress,viewportWidth=1920,viewportHeight=1080,trashAssetsBeforeRuns=false \
--config defaultCommandTimeout=30000,integrationFolder=../../e2e/$SUITE/specs,screenshotsFolder=../../e2e/$SUITE/screenshots,videosFolder=../../e2e/$SUITE/videos,fileServerFolder=./cypress,viewportWidth=1920,viewportHeight=1080,trashAssetsBeforeRuns=false \
$PARAMS

View File

@ -52,6 +52,7 @@ $RUNDIR/bin/grafana-server \
--homepath=$RUNDIR \
--pidfile=$RUNDIR/pid \
cfg:server.http_port=$PORT \
cfg:server.router_logging=1 \
cfg:app_mode=development
# 2>&1 > $RUNDIR/output.log &

View File

@ -14,7 +14,7 @@ Cypress.Commands.add('compareScreenshots', (config: CompareScreenshotsConfig | s
});
Cypress.Commands.add('logToConsole', (message: string, optional?: any) => {
cy.task('log', { message, optional });
cy.task('log', { message: '(' + new Date().toISOString() + ') ' + message, optional });
});
Cypress.Commands.add('readProvisions', (filePaths: string[]) => {