Skip to content

Commit 7f7a907

Browse files
committed
fixed failing tests | removed unnecessary timeouts
1 parent c020365 commit 7f7a907

File tree

5 files changed

+225
-225
lines changed

5 files changed

+225
-225
lines changed

cypress.config.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ module.exports = defineConfig({
77
viewportHeight: 1080,
88
video: false,
99
defaultCommandTimeout: 15000,
10+
experimentalInteractiveRunEvents: true,
1011
env: {
1112
API_AUTH: "https://auth.api.dev.zesty.io",
1213
COOKIE_NAME: "DEV_APP_SID",
@@ -26,6 +27,14 @@ module.exports = defineConfig({
2627

2728
return launchOptions;
2829
});
30+
// Get spec info to be used for the model's label/name
31+
on("before:spec", (spec) => {
32+
const pathPart = spec.relative.split("/");
33+
config.env.SPEC = {
34+
folder: pathPart[pathPart?.length - 2],
35+
file: pathPart[pathPart?.length - 1].replace(/\.spec\.js/g, ""),
36+
};
37+
});
2938

3039
return require("./cypress/plugins/index.js")(on, config);
3140
},

0 commit comments

Comments
 (0)