-
Notifications
You must be signed in to change notification settings - Fork 3
WP Scrubber ‐ Testing Instructions
Please follow the below instructions to execute/run cases mentioned in the critical flow.
To verify that the plugin can be installed and activated without encountering any errors or issues.
Test Steps:
- Navigate to the GitHub and download the plugin zip file.
- Log in to the WordPress Admin Dashboard.
- Install the plugin.
- After successful installation, click the "Activate" button to activate the plugin.
- Observe the activation process for any error messages or issues.
- Check the "Plugins" page to ensure that the newly installed plugin appears in the list of active plugins.
Expected Result:
The plugin should be installed and activated without any errors or difficulties. There should be no error messages displayed during installation or activation. The plugin should appear in the list of active plugins.
Verify that the plugin is installed and functional by using the 'wp help scrub' command after activation in the previous step.
To verify that the plugin is installed and ready to use.
Test Steps:
- Activate the plugin.
- Navigate to wp-cli and execute the command 'wp help scrub'.
- Ensure that an error message such as "Error: 'scrub' is not a registered wp command. See 'wp help' for available commands." does not appear.
Expected Result:
Detailed information such as the name, description, etc., should appear on the screen.
Test Steps:
- Open the Users list in the WordPress dashboard and observe the details about the users, such as usernames, names, and emails.
- Open the terminal.
- Execute the command 'wp scrub users'.
- Wait for the command to complete.
Expected Result:
- Verify that all user details are changed to random data.
- Ensure that the counts of WordPress user roles remain unchanged like if site has 20 editors and 50 subscribers then it should be unchanged.
Test Steps:
- Open the comments section in the WordPress dashboard and observe the details about the comments, such as content, author, and date.
- Open the terminal.
- Execute the command 'wp scrub comments'.
- Wait for the command to complete.
Expected Result:
Verify that all comment data is removed from the site comment section.
Test Steps:
- Open the Users list in the WordPress dashboard and note the details about the users, such as usernames, names, and emails.
- Open the Comments section in the WordPress dashboard and observe the details about the comments, such as content, author, and date.
- Open the terminal.
- Execute the command 'wp scrub all'.
- Wait for the command to complete.
Expected Result:
- Verify that all user details are changed to random values.
- Ensure that all comment details have been removed from site.
Test Steps:
- Execute the desired 'wp scrub' command in the terminal.
- Navigate to the site's debug log
- Verify that no fatal errors are displayed on the site.
Expected Result:
The site functions smoothly without displaying any fatal errors after executing the 'wp scrub' command.