fix: added fetching from server for views#2124
Conversation
2 flaky tests on run #2999 ↗︎Details:
|
|||||||||||||||||||||||||||
| Test | ||
|---|---|---|
| map > [By User] > should show the user a message stating their pin is rejected |
Screenshot
|
|
common.spec.ts • 1 flaky test • ci-chrome
| Test | ||
|---|---|---|
| [Common] > [User Menu] > [By Authenticated] |
Screenshot
|
|
This comment has been generated by cypress-bot as a result of this project's GitHub integration settings.
|
Thanks @AlfonsoGhislieri, are there any tests we can add around this change to provide automated verification that the code is loading data from the server and bypassing the cache? Perhaps extending the test suites in howto.store.test.ts and research.store.test.ts |
|
@thisislawatts I can certainly try, never have tested that before so not too sure how to add it. Maybe using The main issue is I can't even run the firebase emulators and do any backend testing since I keep getting this error: |
|
@AlfonsoGhislieri, I haven't done too much work with the emulators so I defer to @chrismclarke on getting up and running with them. I don't see that error message in the known issues documentation. You shouldn't need to the backend here if you can write a smaller unit test in the |
dcbc499 to
b4c724d
Compare
|
@thisislawatts ah I instantly jumped to having to making some super complicated tests for some reason.. I added some simple unit tests to both check that the server is being called correctly and that the incrementation actually works! |
bcbd160 to
b0cc10a
Compare
|
@thisislawatts everything look alright to you? |
|
Thanks for adding those tests @AlfonsoGhislieri, it looks good to me. Let's merge and see how it holds up in production. |
|
🎉 This PR is included in version 1.39.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
|
@thisislawatts thanks! I noticed that another PR had added some code that was breaking the functionality of the views incrementation. Added the fix in this PR |
PR Checklist
PR Type
Description
Fetches howto data from server rather than cache on view. Temporary fix until serverside incrementation is implemented.
Git Issues
Closes #2115