Merge pull request #9050 from overleaf/ii-cypress-artifacts

Upload cypress artifacts to Google bucket

GitOrigin-RevId: e43ab9259f2cd4030d5edbf35825251bc2804e45
This commit is contained in:
ilkin-overleaf 2022-07-29 11:18:50 +03:00 committed by Copybot
parent 2cbc682d3b
commit 6452f73aab
2 changed files with 9 additions and 4 deletions

View file

@ -3,7 +3,10 @@ import { webpackConfig } from './cypress/support/webpack.cypress'
export default defineConfig({
fixturesFolder: 'cypress/fixtures',
video: false,
video: true,
screenshotsFolder: 'cypress/results',
videosFolder: 'cypress/results',
videoUploadOnPasses: false,
viewportHeight: 800,
viewportWidth: 800,
component: {

View file

@ -73,10 +73,12 @@ services:
BUILD_NUMBER: $BUILD_NUMBER
CYPRESS_IMAGE: $CYPRESS_IMAGE
working_dir: /overleaf/services/web
entrypoint: npm
entrypoint: bash
volumes:
- ./cypress/results:/overleaf/services/web/cypress/results/
command:
- "run"
- "cypress:run-ct"
- "-c"
- "if npm run cypress:run-ct; then exit 0; else mkdir -p ./cypress/results && touch ./cypress/results/.cypress_fail; fi;"
tar:
image: ci/$PROJECT_NAME:$BRANCH_NAME-$BUILD_NUMBER-webpack