diff options
author | Ittay Stern <ittay.stern@att.com> | 2020-04-02 10:33:13 +0300 |
---|---|---|
committer | Ittay Stern <ittay.stern@att.com> | 2020-04-02 10:35:17 +0300 |
commit | 88fcc332e4073b1c33c97d2a9cd81cb492f77481 (patch) | |
tree | 8c5e26fba39ef219d5974c917c4af3b2a117ca61 /vid-webpack-master/cypress/support/application | |
parent | 22517acace92de50b38d0943ec8307d90068c768 (diff) |
Improve clearSessionStorage timings
Hopefully it will solve the flakiness of test named "upgrade vfmodule
when upgraded already service, vnf and brother vfmodule" that fails on
missing test_api value which is set by setTestApiParamToGR()
Issue-ID: VID-647
Change-Id: I51ba95edf3a7535dec2715054f7f10564a7debe3
Signed-off-by: Ittay Stern <ittay.stern@att.com>
Diffstat (limited to 'vid-webpack-master/cypress/support/application')
-rw-r--r-- | vid-webpack-master/cypress/support/application/application.session.actions.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vid-webpack-master/cypress/support/application/application.session.actions.ts b/vid-webpack-master/cypress/support/application/application.session.actions.ts index 9126ae1a4..99d5d867a 100644 --- a/vid-webpack-master/cypress/support/application/application.session.actions.ts +++ b/vid-webpack-master/cypress/support/application/application.session.actions.ts @@ -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(); }); } |