Skip to content

Commit

Permalink
clear IndexDB database before starting automated test
Browse files Browse the repository at this point in the history
  • Loading branch information
BenGamma committed Mar 28, 2020
1 parent f05a38b commit d16cf93
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cypress/support/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import { Firestore } from './db/firebase'
*/

before(() => {
indexedDB.deleteDatabase('OneArmyCache')
cy.clearLocalStorage()
cy.wrap('Initialising Database').then({ timeout: 60000 }, doc => {
// large initial timeout in case server slow to respond
return new Cypress.Promise(async resolve => {
Expand Down

0 comments on commit d16cf93

Please sign in to comment.