Page MenuHomeSoftware Heritage

D1642.id5497.diff
No OneTemporary

D1642.id5497.diff

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
-}
+};

File Metadata

Mime Type
text/plain
Expires
Thu, Jan 30, 10:17 AM (21 h, 35 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3219823

Event Timeline