Context
BackWPUp 5.6.2 PRO introduced a regression on the update system of WP plugins: no updates were possible anymore because the website was failing to get the new updates available.
We currently don't check that the version we are about to release will be able to update to a newer version. This is critical for BackWPUp.
Expected behavior
Add an E2E test that:
- Mocks the API response from backwpup.com and fakes that there is an update available (with a code snippet?)
- Deletes the transient related to update checks on WP.
- Reload an admin page: this will trigger the update check.
- Validates that a backwpup update is available.
Add an E2E test that:
- Mocks the API response from backwpup.com and fakes that there is no updates available (with a code snippet?)
- Deletes the transient related to update checks on WP.
- Reload an admin page: this will trigger the update check.
- Validates that no backwpup update is available.