Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cypress should empty indexDB before onload #1383

Closed
reaktivo opened this issue Feb 27, 2018 · 3 comments
Closed

Cypress should empty indexDB before onload #1383

reaktivo opened this issue Feb 27, 2018 · 3 comments
Labels
type: duplicate This issue or pull request already exists type: feature New feature that does not currently exist

Comments

@reaktivo
Copy link

  • Operating System: Mac OS X
  • Cypress Version: 2.0.4
  • Browser Version: Chrome 64

Is this a Feature or Bug?

Bug

Current behavior:

IndexDB databases are not being cleared before runs

Desired behavior:

IndexDB databases should be empty when doing the first .visit

How to reproduce:

From an application that uses indexDB, reload the application and indexDb data will still be there

Test code:

Additional Info (images, stack traces, etc)

@brian-mann
Copy link
Member

It probably should - but you can clear this yourself. You don't need anything special.

indexedDB.deleteDatabase(dbName)

@brian-mann
Copy link
Member

Also, this is a feature, not a bug.

Related to: #686

@brian-mann brian-mann added the type: feature New feature that does not currently exist label Feb 27, 2018
@brian-mann
Copy link
Member

Closing as duplicate of #1208

@brian-mann brian-mann added the type: duplicate This issue or pull request already exists label Mar 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: duplicate This issue or pull request already exists type: feature New feature that does not currently exist
Projects
None yet
Development

No branches or pull requests

2 participants