Skip to content

Commit

Permalink
ci: Disable service worker
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <jus@bitgrid.net>
  • Loading branch information
juliusknorr committed Oct 25, 2023
1 parent 70af754 commit 0926658
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Empty file.
10 changes: 10 additions & 0 deletions cypress/support/e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@ import './commands.js'
import './sessions.js'
import chaiExtension from './chai.js'

beforeEach(() => {
cy.intercept('GET', '**/preview-service-worker.js', { fixture: 'preview-service-worker.txt' })
})

Cypress.on('window:before:load', (win) => {
// disable service workers
// eslint-disable-next-line
delete win.navigator.ServiceWorker
})

before(() => {
chai.use(chaiExtension)

Expand Down

0 comments on commit 0926658

Please sign in to comment.