You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
alexkirillovtech
changed the title
Lifecycle hooks (before:run, after:run, before:spec, after:spec) are not working
Lifecycle hooks (before:run, after:run, before:spec, after:spec) are not working in v13
Oct 2, 2023
Current behavior
I'm trying to use lifecycle hooks in my code, but they are not executed
Desired behavior
Code inside hooks events to be executed
Test code to reproduce
export default defineConfig({
viewportWidth: 1920,
viewportHeight: 1080,
fixturesFolder: "./test/cypress/fixtures",
screenshotsFolder: "./test/cypress/screenshots",
videosFolder: "./test/cypress/videos",
downloadsFolder: "./test/cypress/downloads",
experimentalStudio: true,
experimentalWebKitSupport: true,
e2e: {
experimentalRunAllSpecs: true,
supportFile: "./test/cypress/support/e2e.ts",
specPattern: "test/cypress/e2e/**/*.cy.ts",
setupNodeEvents(on) {
on("before:browser:launch", (browser: Cypress.Browser, launchOptions) => {
console.log("in before:browser:launch.....");
},
});
Cypress Version
13.3.0
Node version
v18.14.2
Operating System
macOS 13.4.1
Debug Logs
No response
Other
No response
The text was updated successfully, but these errors were encountered: