Improve clearSessionStorage timings
[vid.git] / vid-webpack-master / cypress / support / application / application.session.actions.ts
index 9126ae1..99d5d86 100644 (file)
@@ -25,8 +25,8 @@ function getReduxState(): Chainable<any> {
   });
 }
 
-function clearSessionStorage() : void {
-  cy.window().then((win) => {
+function clearSessionStorage() : Cypress.Chainable<any> {
+  return cy.window().then((win) => {
     win.sessionStorage.clear();
   });
 }