diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index b78ed03..4224ffe 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -142,6 +142,7 @@ jobs: - name: Zip Cypress videos if: always() run: | + mkdir -p ./client/cypress/videos zip -r cypress-videos ./client/cypress/videos - name: Add cypress videos artifacts diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index feb88f6..487e9fb 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -142,6 +142,7 @@ jobs: - name: Zip Cypress videos if: always() run: | + mkdir -p ./client/cypress/videos zip -r cypress-videos ./client/cypress/videos - name: Add cypress videos artifacts diff --git a/client/cypress.config.ts b/client/cypress.config.ts index 4bc704f..925054a 100644 --- a/client/cypress.config.ts +++ b/client/cypress.config.ts @@ -1,13 +1,13 @@ -import { defineConfig } from "cypress"; +import { defineConfig } from 'cypress' export default defineConfig({ - reporter: "mochawesome", + reporter: 'mochawesome', reporterOptions: { - reportDir: "cypress/results", + reportDir: 'cypress/results', overwrite: false, html: true, - json: false, + json: false }, viewportHeight: 900, viewportWidth: 1600, @@ -16,24 +16,25 @@ export default defineConfig({ defaultCommandTimeout: 30000, env: { - hosturl: "http://localhost:4200", - appLocation: "", - site_id_SAS9: "70221618", - site_id_SASVIYA: "70253615", - site_id_SASJS: "123", - serverType: "SASJS", - libraryToOpenIncludes_SASVIYA: "viya", - libraryToOpenIncludes_SAS9: "dc", - libraryToOpenIncludes_SASJS: "dc", + hosturl: 'http://localhost:4200', + appLocation: '', + site_id_SAS9: '70221618', + site_id_SASVIYA: '70253615', + site_id_SASJS: '123', + serverType: 'SASJS', + libraryToOpenIncludes_SASVIYA: 'viya', + libraryToOpenIncludes_SAS9: 'dc', + libraryToOpenIncludes_SASJS: 'dc', debug: false, screenshotOnRunFailure: false, longerCommandTimeout: 50000, - testLicenceUserLimits: false, + testLicenceUserLimits: false }, e2e: { + video: true, setupNodeEvents(on, config) { // implement node event listeners here - }, - }, -}); + } + } +})