test: Run cypress e2e tests in light mode by default (no-changelog) (#9123)

This commit is contained in:
Elias Meire 2024-04-11 14:22:33 +02:00 committed by GitHub
parent 1b199c08ce
commit 5433004d77
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -14,6 +14,10 @@ beforeEach(() => {
cy.signin({ email: INSTANCE_OWNER.email, password: INSTANCE_OWNER.password }); cy.signin({ email: INSTANCE_OWNER.email, password: INSTANCE_OWNER.password });
} }
cy.window().then((win): void => {
win.localStorage.setItem('N8N_THEME', 'light');
});
cy.intercept('GET', '/rest/settings').as('loadSettings'); cy.intercept('GET', '/rest/settings').as('loadSettings');
cy.intercept('GET', '/types/nodes.json').as('loadNodeTypes'); cy.intercept('GET', '/types/nodes.json').as('loadNodeTypes');