Merge pull request #6125 from Ocelot-Social-Community/5972-devops-eliminate-annotations-for-e2e-tests

refactor(other): deactivate video recording & only upload screenshots, if tests fail for e2e tests
This commit is contained in:
mahula 2023-03-14 11:26:30 +01:00 committed by GitHub
commit 623e12befe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 7 deletions

View File

@ -329,19 +329,16 @@ jobs:
- name: backend | docker-compose - name: backend | docker-compose
run: docker-compose -f docker-compose.yml -f docker-compose.test.yml up --detach --no-deps webapp neo4j backend run: docker-compose -f docker-compose.yml -f docker-compose.test.yml up --detach --no-deps webapp neo4j backend
- name: cypress | Fullstack tests - name: cypress | Fullstack tests
id: e2e-tests
run: | run: |
yarn install yarn install
yarn run cypress:run --spec $(cypress/parallel-features.sh ${{ matrix.job }} ${{ env.jobs }} ) yarn run cypress:run --spec $(cypress/parallel-features.sh ${{ matrix.job }} ${{ env.jobs }} )
########################################################################## ##########################################################################
# UPLOAD SCREENSHOTS & VIDEO ############################################# # UPLOAD SCREENSHOTS - IF TESTS FAIL #####################################
########################################################################## ##########################################################################
- name: Upload Artifact - name: Full stack tests | if any test failed, upload screenshots
if: ${{ failure() && steps.e2e-tests.conclusion == 'failure' }}
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: cypress-screenshots name: cypress-screenshots
path: cypress/screenshots/ path: cypress/screenshots/
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: cypress-videos
path: cypress/videos/

View File

@ -4,6 +4,7 @@
"ignoreTestFiles": "*.js", "ignoreTestFiles": "*.js",
"chromeWebSecurity": false, "chromeWebSecurity": false,
"baseUrl": "http://localhost:3000", "baseUrl": "http://localhost:3000",
"video":false,
"retries": { "retries": {
"runMode": 2, "runMode": 2,
"openMode": 0 "openMode": 0