mirror of
https://github.com/n8n-io/n8n.git
synced 2026-05-30 16:26:59 +02:00
fix: Intercepts are defined before login (no-changelog) (#16873)
This commit is contained in:
parent
7c8a152490
commit
1958b89d38
|
|
@ -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();
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user