-
Notifications
You must be signed in to change notification settings - Fork 48
Testing instructions for critical flows
Test Steps
- Download the Plugin zip from WP account or Github
- Install the plugin zip in the Plugin Uploader screen of the store
Expected Result:
The plugin should be installed and activated without any error or trouble.
Description
Within the Reading section of your site, you should see Restricted Site Access settings after successfully installing the plugin.
Test steps
- Login with Admin
- Go to Settings
- Click on Reading
Expected result
Restricted Site Access settings (Site visibility, Handling restricted visitors, Unrestricted IP addresses) should be visible in Settings.
Description
Verify the "Allow search engines to index this site" option. Include this site in search engine indexes.
Test steps
- Login with admin
- Active the plugin
- Go to Setting > Reading
- Select Allow search engines to index this site option
Expected result
The setting should be saved successfully, ensuring that search engines are allowed to index the site.
Description Keep this site from being indexed by search engines.
Test steps
- Login with admin
- Active the plugin
- Go to Setting > Reading
- Select Discourage search engines from indexing this site option
Expected result
The setting should be saved successfully, ensuring that search engines are discouraged from indexing the site.
Description If you select Site visibility : Restrict site access to visitors who are logged in or allowed by IP address Option Handle restricted visitors and Unrestricted IP addresses section should appear.
Test steps
- Login with admin
- Active the plugin
- Go to Settings > Reading
- Select Restrict site access to visitors who are logged in or allowed by IP address
Expected result
Upon selecting "Restrict site access to visitors who are logged in or allowed by IP address," the sections for "Handle restricted visitors" and "Unrestricted IP addresses" should appear.
Description
Access the site directly with login and without login.
Test steps
- Login with admin
- Active the plugin
- Go to Settings > Reading
- Select Restrict site access to visitors who are logged in or allowed by IP address
- Select Send them to the WordPress login screen
Expected result
If user is loged in then user should access the site.
If user is not logged in then user should not access the site, it should be redirected to login screen.
Description
Access the site directly with login and without login after added IP address.
Test steps
- Login with admin
- Active the plugin
- Go to Settings > Reading
- Select Restrict site access to visitors who are logged in or allowed by IP address
- Select Send them to the WordPress login screen
- Try to access site without login
Expected result
If user's IP is whitelisted then user should access the site.
If user's IP is not logged in then user should not access the site, it should be redirected to login screen.
Description If user select Handle restricted visitors - Redirect them to a specified web address. It should be redirected to specified web address which is entered.
Test steps
- Login with admin
- Active the plugin
- Go to Settings > Reading
- Select Restrict site access to visitors who are logged in or allowed by IP address
- Select Redirect them to a specified web address
- Add proper web address
- Select Redirect to same path
- Select Redirection status code
Expected result
If user is not logged in then user should redirect to specified web address
If user's IP is not whitelisted then user should redirect to specified web address
Description If user select Handle restricted visitors - Show them a simple message.
- Simple message should popup.
Test steps
- Login with admin
- Active the plugin
- Go to Settings > Reading
- Select Restrict site access to visitors who are logged in or allowed by IP address
- Select Show them a simple message
- Enter Restriction message
Expected result
If user is not logged in then user should be get popup message which we entered in Restriction message field.
If user's IP is not logged in then user should be get popup message which we entered in Restriction
Description
If user select Handle restricted visitors - Show them a simple message.
- Redirect them to selected page.
Test steps
- Login with admin
- Active the plugin
- Go to Settings > Reading
- Select Restrict site access to visitors who are logged in or allowed by IP address
- Select Show them a page
- Select the page where user will be redirect
Expected result
If user is not logged in then user should redirect to page which is selected in settings
If user's IP is not whitelisted then user should redirect to page which is selected in settings