codeceptjs / codeceptjs/CodeceptJS

`sessionStorage` doesn't removed after `openNewTab` fired

Open
#2,519 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
4.2k
Forks
757
Avg merge
2d 9h
Merged PRs (30d)
16

Description

#### What are you trying to achieve?
Test for `sessionStorage`

#### What do you get instead?
`sessionStorage` doesn't removed since I close other tabs and opened up the new one my app still gets the storage with unexpected behavior.

> Provide test source code if related

```js
I.openNewTab();
I.closeOtherTabs();
```
#### Workaround
```js
I.openNewTab();
I.closeOtherTabs();
I.executeScript(() => {
sessionStorage.clear();
});
```

### Details

* CodeceptJS 2.6.1
* NodeJS 13.3.0
* Operating System: Ubuntu 18.04.4 LTS
* webdriverio ^5.22.4

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.