Skip to content

WP-NOW: add plugin update tests#266

Closed
sejas wants to merge 4 commits intotrunkfrom
add/wp-now-plugin-update-tests
Closed

WP-NOW: add plugin update tests#266
sejas wants to merge 4 commits intotrunkfrom
add/wp-now-plugin-update-tests

Conversation

@sejas
Copy link
Copy Markdown
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
@sejas sejas closed this Jul 25, 2025
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