Skip to content

Commit

Permalink
fix: reports
Browse files Browse the repository at this point in the history
  • Loading branch information
pixincreate committed Dec 16, 2024
1 parent cae19f8 commit 88ba0d5
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions cypress-tests/cypress.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defineConfig } from "cypress";
import "cypress-mochawesome-reporter/plugin.js";
import mochawesome from "cypress-mochawesome-reporter/plugin.js";

let globalState;

Expand All @@ -10,7 +10,9 @@ const reportName = process.env.REPORT_NAME || `${connectorId}_report`;

export default defineConfig({
e2e: {
setupNodeEvents(on) {
setupNodeEvents(on, config) {
mochawesome(on);

on("task", {
setGlobalState: (val) => {
return (globalState = val || {});
Expand All @@ -26,6 +28,8 @@ export default defineConfig({
return null;
},
});

return config;
},
experimentalRunAllSpecs: true,

Expand All @@ -43,6 +47,5 @@ export default defineConfig({
chromeWebSecurity: false,
defaultCommandTimeout: 10000,
pageLoadTimeout: 20000,

screenshotsFolder: screenshotsFolderName,
});

0 comments on commit 88ba0d5

Please sign in to comment.