Skip to content

Commit

Permalink
clear browser storage on test suite completion
Browse files Browse the repository at this point in the history
  • Loading branch information
dmlemeshko committed Oct 18, 2019
1 parent 9ff6d86 commit 20d4cf5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/functional/services/remote/remote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ export async function RemoteProvider({ getService }: FtrProviderContext) {
.manage()
.window()
.setRect({ width, height });
await driver.executeScript('window.sessionStorage.clear();');
await driver.executeScript('window.localStorage.clear();');
});

lifecycle.on('cleanup', async () => {
Expand Down

0 comments on commit 20d4cf5

Please sign in to comment.