Skip to content

Testing instructions for critical flows

Sumit Bagthariya edited this page Aug 12, 2024 · 12 revisions

Can activate the plugin without any error

Test Steps

  1. Download the Plugin zip from WP account or Github
  2. 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.


Restricted Site Access settings

Description

Within the Reading section of your site, you should see Restricted Site Access settings after successfully installing the plugin.

Test steps

  1. Login with Admin
  2. Go to Settings
  3. Click on Reading

Expected result

Restricted Site Access settings (Site visibility, Handling restricted visitors, Unrestricted IP addresses) should be visible in Settings.


Site visibility - Allow search engines to index this site

Description

Verify the "Allow search engines to index this site" option. Include this site in search engine indexes.

Test steps

  1. Login with admin
  2. Active the plugin
  3. Go to Setting > Reading
  4. 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.


Site Visibility - Discourage search engines from indexing this site

Description Keep this site from being indexed by search engines.

Test steps

  1. Login with admin
  2. Active the plugin
  3. Go to Setting > Reading
  4. 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.


Restrict site access to visitors who are logged in or allowed by IP address

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

  1. Login with admin
  2. Active the plugin
  3. Go to Settings > Reading
  4. 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.


Site visibility - Restrict site access to visitors who are not logged in

Description

Access the site directly with login and without login.

Test steps

  1. Login with admin
  2. Active the plugin
  3. Go to Settings > Reading
  4. Select Restrict site access to visitors who are logged in or allowed by IP address
  5. 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.


Site visibility - Restrict the site access whose IP address are not allowed.

Description

Access the site directly with login and without login after added IP address.

Test steps

  1. Login with admin
  2. Active the plugin
  3. Go to Settings > Reading
  4. Select Restrict site access to visitors who are logged in or allowed by IP address
  5. Select Send them to the WordPress login screen
  6. 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.


Handle restricted visitors - Redirect them to a specified web address

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

  1. Login with admin
  2. Active the plugin
  3. Go to Settings > Reading
  4. Select Restrict site access to visitors who are logged in or allowed by IP address
  5. Select Redirect them to a specified web address
  6. Add proper web address
  7. Select Redirect to same path
  8. 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


Handle restricted visitors - Show them a simple message

Description If user select Handle restricted visitors - Show them a simple message.

  • Simple message should popup.

Test steps

  1. Login with admin
  2. Active the plugin
  3. Go to Settings > Reading
  4. Select Restrict site access to visitors who are logged in or allowed by IP address
  5. Select Show them a simple message
  6. 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


Handle restricted visitors - Show them a page

Description

If user select Handle restricted visitors - Show them a simple message.

  • Redirect them to selected page.

Test steps

  1. Login with admin
  2. Active the plugin
  3. Go to Settings > Reading
  4. Select Restrict site access to visitors who are logged in or allowed by IP address
  5. Select Show them a page
  6. 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