diff --git a/cypress/integration/sidebar.spec.js b/cypress/integration/sidebar.spec.js --- a/cypress/integration/sidebar.spec.js +++ b/cypress/integration/sidebar.spec.js @@ -9,7 +9,11 @@ describe('Sidebar tests On Large Screen', function() { beforeEach(function() { - cy.visit(url); + cy.visit(url, { + onBeforeLoad: (win) => { + win.localStorage.clear(); + } + }); }); it('should toggle sidebar when swh-push-menu is clicked', function() { diff --git a/cypress/plugins/index.js b/cypress/plugins/index.js --- a/cypress/plugins/index.js +++ b/cypress/plugins/index.js @@ -14,4 +14,4 @@ module.exports = (on, config) => { // `on` is used to hook into various events Cypress emits // `config` is the resolved Cypress config -} +};