diff --git a/cypress/support/e2e.ts b/cypress/support/e2e.ts index 2394d3e5877..6a8a49e6d42 100644 --- a/cypress/support/e2e.ts +++ b/cypress/support/e2e.ts @@ -27,16 +27,14 @@ before(() => { }); beforeEach(() => { - if (!cy.config('disableAutoLogin')) { - cy.signinAsOwner(); - } - cy.window().then((win): void => { win.localStorage.setItem('N8N_THEME', 'light'); win.localStorage.setItem('N8N_AUTOCOMPLETE_ONBOARDED', 'true'); win.localStorage.setItem('N8N_MAPPING_ONBOARDED', 'true'); }); + // #region ===== Intercepts ===== + cy.intercept('GET', '/rest/settings', (req) => { // Disable cache delete req.headers['if-none-match']; @@ -106,4 +104,10 @@ beforeEach(() => { items: [], }, ).as('getWhatsNew'); + + // #endregion ===== Intercepts ===== + + if (!cy.config('disableAutoLogin')) { + cy.signinAsOwner(); + } });