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

Fix pr920 - clear indexDB local cache before automated test #922

Merged
merged 2 commits into from
Mar 28, 2020

Conversation

BenGamma
Copy link
Contributor

Since merge of #920 automated testings build were mysteriously failing, with various errors, always different.
That was linked to the change of the IModerable interface in #920 and the fact that the IndexDB database interfaces cached in the automated browser used by cypress (in my case chromium) was different than the new ones.

In this PR I removed the need of modifiying the interface. We should modify interfaces only in major update cases because it will cause all our user to redownload the datas from db. With approximately 10 000 monthly visitors that will cost a lot of bandwith and more hosting cost too.
In this situation (update a webhook for internal use only), it doesn't appear worth to remove all caching.

Also I added an instruction to clear local indexDB cache at the beggining of the tests.

@cypress
Copy link

cypress bot commented Mar 28, 2020



Test summary

30 0 0 0


Run details

Project onearmy-community-platform
Status Passed
Commit d555c8b ℹ️
Started Mar 28, 2020 12:19 PM
Ended Mar 28, 2020 12:25 PM
Duration 06:32 💡
OS Linux Ubuntu Linux - 14.04
Browser Electron 78

View run in Cypress Dashboard ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

@BenGamma BenGamma merged commit 65a0728 into master Mar 28, 2020
@BenGamma BenGamma deleted the fix-pr920 branch March 28, 2020 13:32
@BenGamma BenGamma mentioned this pull request Mar 28, 2020
@chrismclarke
Copy link
Member

I don't think the clearing should be necessary, Cypress does this automatically as mentioned:
https://docs.cypress.io/api/commands/clearlocalstorage.html#Syntax

But as long as things are working I'm not too worried either way.

@BenGamma
Copy link
Contributor Author

Yep it was clearing the localStorage but not the indexDB cypress-io/cypress#1208

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants