feat(editor): Migrate existing users to new canvas and set new canvas as default (#11896)

This commit is contained in:
Alex Grozav
2024-11-27 10:11:33 +02:00
committed by GitHub
parent 132aa0b9f1
commit caa744785a
7 changed files with 203 additions and 25 deletions

View File

@@ -75,8 +75,13 @@ Cypress.Commands.add('signin', ({ email, password }) => {
.then((response) => {
Cypress.env('currentUserId', response.body.data.id);
// @TODO Remove this once the switcher is removed
cy.window().then((win) => {
win.localStorage.setItem('NodeView.switcher.discovered', 'true'); // @TODO Remove this once the switcher is removed
win.localStorage.setItem('NodeView.migrated', 'true');
win.localStorage.setItem('NodeView.switcher.discovered.beta', 'true');
const nodeViewVersion = Cypress.env('NODE_VIEW_VERSION');
win.localStorage.setItem('NodeView.version', nodeViewVersion ?? '1');
});
});
});