Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7163558
D1642.id5497.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
778 B
Subscribers
None
D1642.id5497.diff
View Options
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
Details
Attached
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
Attached To
D1642: Clear localstorage before Sidebar Tests
Event Timeline
Log In to Comment