From ef6392780e300744b12790897c2b1cf126e047bb Mon Sep 17 00:00:00 2001 From: Alex Grozav Date: Fri, 18 Oct 2024 17:53:18 +0300 Subject: [PATCH] test: set node view switcher as discovered in e2e --- cypress/support/commands.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/cypress/support/commands.ts b/cypress/support/commands.ts index 35f100fded64f..f3b80b7d8873d 100644 --- a/cypress/support/commands.ts +++ b/cypress/support/commands.ts @@ -69,6 +69,7 @@ Cypress.Commands.add('signin', ({ email, password }) => { failOnStatusCode: false, }) .then((response) => { + window.localStorage.setItem('NodeView.switcher.discovered', '1'); // @TODO Remove this once the switcher is removed Cypress.env('currentUserId', response.body.data.id); }); });