From 10995665a101bb27f26eab04aeaff9c8de5aa4fc Mon Sep 17 00:00:00 2001 From: mahula Date: Mon, 13 Mar 2023 20:39:22 +0100 Subject: [PATCH 1/3] configure screenshot upload to depend on e2e test failure in github test workflow --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 46d80241f..4070ec7c5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -333,9 +333,9 @@ jobs: yarn install 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 uses: actions/upload-artifact@v3 with: name: cypress-screenshots From 4b468903a32df4b60f826ab7344d46b1a7c37d05 Mon Sep 17 00:00:00 2001 From: mahula Date: Mon, 13 Mar 2023 20:41:08 +0100 Subject: [PATCH 2/3] remove video upload for e2e tests in github test workflow --- .github/workflows/test.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4070ec7c5..1740c09fe 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -329,6 +329,7 @@ jobs: - name: backend | docker-compose run: docker-compose -f docker-compose.yml -f docker-compose.test.yml up --detach --no-deps webapp neo4j backend - name: cypress | Fullstack tests + id: e2e-tests run: | yarn install yarn run cypress:run --spec $(cypress/parallel-features.sh ${{ matrix.job }} ${{ env.jobs }} ) @@ -336,12 +337,8 @@ jobs: # UPLOAD SCREENSHOTS - IF TESTS FAIL ##################################### ########################################################################## - name: Full stack tests | if any test failed, upload screenshots + if: ${{ failure() && steps.e2e-tests.conclusion == 'failure' }} uses: actions/upload-artifact@v3 with: name: cypress-screenshots path: cypress/screenshots/ - - name: Upload Artifact - uses: actions/upload-artifact@v3 - with: - name: cypress-videos - path: cypress/videos/ From d5d8597232389d0b4c96552f0930da8d0a327f11 Mon Sep 17 00:00:00 2001 From: mahula Date: Mon, 13 Mar 2023 20:46:59 +0100 Subject: [PATCH 3/3] deactivate video recording in cypress --- cypress/cypress.json | 1 + 1 file changed, 1 insertion(+) diff --git a/cypress/cypress.json b/cypress/cypress.json index dbe8691fa..de323f736 100644 --- a/cypress/cypress.json +++ b/cypress/cypress.json @@ -4,6 +4,7 @@ "ignoreTestFiles": "*.js", "chromeWebSecurity": false, "baseUrl": "http://localhost:3000", + "video":false, "retries": { "runMode": 2, "openMode": 0