Skip to content

Testing instructions for critical flows

Sumit Bagthariya edited this page Aug 12, 2024 · 15 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.


Upload avatar section

Verify the Upload avatar section should be visible in the Profile

Test Steps

  1. Login with the admin test site
  2. Go to Profile: Users > Profiles
  3. Avatar section will be visible

Expected result

The Avatar section should be visible with an appropriate design.

Screenshot

image


User can upload avatar from media library

Verify that the user can upload an avatar from the WordPress media library.

Test steps

  1. Login with the admin test site
  2. Go to Profile: Users > Profiles.
  3. From the Upload Avatar section, click Choose from Media Library.
  4. Select an image from the media library.
  5. Click on Set as avatar.
  6. Select the rating.
  7. Click on Updated Profile

Expected result

Once the image has been successfully uploaded, it should appear in the profile section on the right side top corner.

Screenshot

image


User can upload avatar from local storage

Description

Verify that the user can upload an avatar from the local storage

Test steps

  1. Login with the admin test site
  2. Go to Profile: Users > Profiles.
  3. From the Upload Avatar section, click Choose from Media Library.
  4. Select an image from the Upload files.
  5. Click on Set as avatar.
  6. Select the rating.
  7. Click on Updated Profile

Expected result

Once the image has been successfully uploaded, it should appear in the profile section on the right side top corner.


Delete local avatar

Verify that the user can delete their local avatars.

Test steps

  1. Login with the admin test site
  2. Go to Profile: Users > Profiles.
  3. From the Upload Avatar section, click remove local avatar

Expected result

  1. The user should be able to delete their local avatars.
  2. When a Gravatar is not set, the local avatar is used instead
Screenshot

image


Avatar is inappropriate

Verify If the local avatar is inappropriate for this site, Gravatar will be attempted.

Test steps

  1. Login with the admin test site
  2. Go to Profile: Users > Profiles.
  3. From the Upload Avatar section, click Choose from Media Library.
  4. Select an image from the media library.
  5. Click on Set as avatar.
  6. Select the rating.
  7. Click on Updated Profile

Expected result

There will be a Gravatar image displayed.


Rating of local avatars

Verify the rating of local avatars, just like Gravatar

Test steps

  1. Login with the admin test site
  2. Go to Profile: Users > Profiles.
  3. From the Upload Avatar section, select the rating.

Expected result

Local avatars should be rated like Gravatar.


Verify lower privilege users can upload avatar

All user(subscribers, contributors, etc..) can upload local avatar.

Test steps

  1. Login with the admin test site with subscribers or contributors user role.
  2. Go to Profile: Users > Profiles.
  3. From the Upload Avatar section, click Choose from Media Library.
  4. Select an image from the media library.
  5. Click on Set as avatar.
  6. Select the rating.
  7. Click on Updated Profile

Expected result

Once the image has been successfully uploaded, it should appear in the profile section on the right side top corner.


Verify the Local Avatar supported all the browsers and devices

Description

All desktop browsers, and responsive devices should support Local Avatar.

Test steps

  1. Upload the image via the Local Avatar section in Google Chrome
  2. Repeat in Edge
  3. Repeat in FireFox
  4. Repeat in Safari
  5. Use the Local Avatar section in Google Chrome (mobile iOS) to upload the image
  6. Repeat in Safari (mobile iOS)
  7. Repeat in Google Chrome (mobile Android)
  8. Upload the image via the Local Avatar section within Google Chrome (iPAD,iOS)
  9. Repeat in Google Chrome, (Tablet ,Android)

Expected result

You should be able to upload the image without any problems.


Check for the Avatar fallback image

Test steps

  1. Make sure there is at least one user available on site with the email address having Gravatar set
  2. Make sure for that user there is no avatar image is set from "Simple local avatar" to check For that go to Users > Edit user profile > Profile picture
  3. Goto settings > Discussion > Navigate to Default Avatar > Choose a default avatar from media library
  4. Uncheck if the setting "Local Avatars Only" is checked

Expected result:

  1. Make sure the Gravtar image for that use (from step-2) is should be visible

When “Local Avatars Only” is disabled

Test steps

  1. Goto WordPress dashboard > Settings > Discussion
  2. Navigate to "Local Avatars Only", Make sure it should be unchecked
  3. Make sure there is at least one user available on site with the email address having Gravatar set

Expected result:

  1. When “Local Avatars Only” is disabled, the Gravatars should be used/displayed
  2. To make sure, Goto users list > the Gravatars should be displayed

When “Local Avatars Only” is enabled

Test steps

  1. Goto WordPress dashboard > Settings > Discussion
  2. Navigate to "Local Avatars Only", Make sure it should be checked
  3. Make sure there is at least one user available on site with the email address having Gravatar set

Expected result:

  1. When “Local Avatars Only” is enabled, the default local avatar should be used/displayed even if the user has Gravatars available.
  2. To make sure, Goto users list > the default local avatar should be displayed

When set, the Default Avatar from the Media Library should be displayed as an avatar

Test steps

  1. Make sure there is at least one user available on site with the email address having NO Gravatar set
  2. Goto WordPress dashboard > Settings > Discussion
  3. Navigate to "Default Avatar" and select and click on "choose default avatar" and select image from media library
  4. Navigate to "Local Avatars Only", Make sure it should be unchecked
  5. Save the changes

Expected Result:

  1. When Simple local avatar is not set and Gravatar does not exist, and the Default Avatar is chosen from the Media Library, the chosen avatar image from the media library should be displayed as an avatar.

When set, the “RoboHash (Generated)” should be displayed as an avatar

Test steps

  1. Make sure there is at least one user available on site with the email address having NO Gravatar set
  2. Goto WordPress dashboard > Settings > Discussion
  3. Navigate to "Default Avatar" and select any default avatar
  4. Navigate to "Local Avatars Only", Make sure it should be unchecked
  5. Save the changes

Expected Result:

  1. When simple local avatar is not set and Gravatar does not exist, and the “RoboHash (Generated)” is set as Default Avatar, the auto generated RoboHash avatar should be displayed.