From d16cf930aed5993c48dc94d8fdc266bccdadc02a Mon Sep 17 00:00:00 2001 From: Benjamin Gammaire Date: Sat, 28 Mar 2020 12:03:57 +0000 Subject: [PATCH] clear IndexDB database before starting automated test --- cypress/support/hooks.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cypress/support/hooks.ts b/cypress/support/hooks.ts index 92fa2148bb..a36afdcc6f 100644 --- a/cypress/support/hooks.ts +++ b/cypress/support/hooks.ts @@ -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 => {