-
Notifications
You must be signed in to change notification settings - Fork 82
Testing instructions for critical flows
Test steps:
- Download the plugin
- Go to Plugins > Installed Plugins
- Click on the activate link under the Safe Redirect Manager
- Check that the relevant plugin information appears, i.e. Descriptions ,Version and Support links.
Expected Result:
The plugin should activate without any error
Verify the user can access the Redirect Manager from the tools.
Test steps:
- Login with admin
- Go to Tools
- Click on Safe Redirect Manager
Expected Result:
Users can access the Redirect Manager module from Tools.
Screenshot
Test Steps
- Login with admin
- Go to Tools
- Click on Safe Redirect Manager
- Click on the Create Redirect Rule Button.
- Enter a valid URL in the Redirect From and Redirect To fields.
- Select HTTP Status Code.
- Enter message
- Redirect Protocol
- Enter Notes
- Click on Publish.
Expected Result:
The rule should be created successfully with the "Redirect rule published" message.
Screenshot
Test Steps
Select the different HTTP Status Code and check the behavior of the redirection.
- Login with admin
- Go to Tools
- Click on Safe Redirect Manager
- Click on the Create/Edit Redirect Rule Button.
- Enter a valid URL in the Redirect From and Redirect To fields.
- Select HTTP Status Code
- Click on Update
Expected Result:
The HTTP Status Code configured by the admin, users should be redirected to the correct page.
Verify that by default the plugin only allows at most 1000 redirects.
Test Steps
- Login with admin
- Go to Tools
- Click on Safe Redirect Manager
- Click on create Redirect Rule Button.
- Enter a valid URL in the Redirect From and Redirect To fields.
- Select HTTP Status Code.
- Click on publish.
- Repeat the same steps and Imports redirects from a CSV file. Example here
Expected Result:
Repeat the same steps for creating more than 1000 redirect url or Import redirect rules CSV file using WP-CLI command. You can find information on CLI commands here
Verify the edit redirection rules and update the fields
Test Steps
- Login with admin
- Go to Tools
- Click on the redirect rule
- Update the fields and click on Update
Expected Result:
Data should be updated with "Redirect rule updated." success message.
Screenshot
Test Steps
- Login with admin
- Go to Tools
- Hover over the redirect rule
- Click on Trash
Expected Result:
Redirect rule should be deleted with "Redirect rule deleted." success message.