// Import commands.js using ES2015 syntax: import "./commands"; //unique test run ID for all tests Cypress.config("cyid", `cy${new Date().getTime()}`); // Global guard: halt all tests if abort flag exists beforeEach(function () { cy.task("checkAbortFlag").then(shouldAbort => { if (shouldAbort) { Cypress.runner.stop(); this.skip(); } }); });