wp-media/wp-rocket-e2e

Plugin not properly uninstalled after SSH related tests completes

Closed this issue · 1 comments

Before submitting an issue please check that you’ve completed the following steps:

  • Made sure you’re on the latest version
  • Used the search feature to ensure that the bug hasn’t been reported before

Describe the bug
When we run tests, at the end of the test, we delete the WPR directory directly which does not perform the necessary clean up of the plugin.

To Reproduce
Steps to reproduce the behavior:

  1. Run a test that depends on the SSH
  2. Wait for test to finish
  3. WPR is deleted from the list of plugins
  4. Check the DB and see that the transients and WPR related tables are still there.

Expected behavior
We need to uninstall the plugin properly so that the required hooks responsible for clearing the plugin data is fired.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

Acceptance Criteria (for WP Media team use only)
Clear instructions for developers, to be added before the grooming

Closing as it's already addressed in this PR