Skip to content

Commit

Permalink
Add matomo + add enabledByDefault + add empty conservation
Browse files Browse the repository at this point in the history
  • Loading branch information
Dumazeau committed Feb 2, 2022
1 parent fd8f4e7 commit 94b342d
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions cypress/integration/cookies-regulation.spec.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
context('Cookies Regulation', () => {
let consoleLog = [];

Cypress.on('window:before:load', win => {
cy.stub(win.console, 'log', (log) => {
consoleLog.push(log);
})
});

beforeEach(() => {
cy.clearCookies()
consoleLog = [];

cy.visit('/', {
onBeforeLoad(win) {
cy.stub(win.console, 'log', (log) => {
consoleLog.push(log);
})
}
})
cy.visit('/')
})

describe('Banner', () => {
Expand Down

0 comments on commit 94b342d

Please sign in to comment.