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

WP-NOW: add plugin update tests #266

Open
wants to merge 4 commits into
base: trunk
Choose a base branch
from

Conversation

sejas
Copy link
Collaborator

@sejas sejas commented May 17, 2024

Note

We won't merge this PR until the plugin update error is fixed

What?

Add tests to validate the WordPress Plugin Update flow.

Why?

Currently that flow fails and after fixing the underlaying error, these tests will confirm it works.

How?

It uses WordPress functions to trigger a plugin update.

Testing Instructions

Run:

  • nvm use
  • npm install
  • npx nx run wp-now:test

Manual testing

This test introduces an automatic verification of the plugin update.

Here is a screencast of the manual testing where it fails:

wp-now-plugin-update-manual-testing.mp4

You can observe that after updating the plugin, the folder is "removed":
The filesystem returns that the folder and its files does not exist.
While php function $wp_filesystem->exists returns true for the folder and its files.

@sejas sejas self-assigned this May 17, 2024
@sejas sejas added the wp-now label May 17, 2024
@sejas sejas changed the title Add/wp now plugin update tests WP-NOW: add plugin update tests May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant