-
Notifications
You must be signed in to change notification settings - Fork 52
Testing Instructions for Critical Flow
The plugin should be installed and activated without any error or trouble.
Steps:
- Download the Plugin zip file.
- Install the plugin zip in the Plugin Uploader screen of the site.
Expected Result-
The plugin should be installed without any error.
Steps:
- Downgrade PHP version if using =< PHP 7.4
- Activate the plugin
Expected Result-
- Plugin should show a warning notice on activation.
- Plugin setup/setting buttons should not appear.
Steps:
- Navigate to the WordPress admin dashboard.
- Go to the "Plugins" section.
- Locate and activate the ClassifAI plugin.
Expected Result-
Upon successful activation, a banner should be displayed in the header area.
- The banner text should have: "Congratulations, the ClassifAI plugin is now activated".
- The banner should include a button labelled 'Start Setup'.
The objective of this test case is to ensure the functionality and configuration of the NLU (Natural Language Understanding) - Classify Content settings on the admin screen.
Steps:
- Navigate to WP Dashboard > Tools > ClassifAI > Language Processing > IBM Watson > Natural Language Understanding Screen.
- Check the setting 'Classify Content'.
- Scroll to the bottom of the setting page and enable the setting 'Post Types to Classify'.
- Select 'Post' and 'Pages'.
- Enable checkbox for 'Category' and select 'Watson Category' from the dropdown.
- Save the setting by clicking the 'Save Changes' button.
Expected Result:
- The 'Classify Content' setting should be visible.
- The 'Post Types to Classify' setting should be present at the bottom of the page.
- 'Post' and 'Pages' should be selectable options for content classification.
- After saving changes, there should be a success message indicating that the changes were saved successfully.
- The settings should persist after saving, and the selected post types should remain enabled.
The objective of this test case is to ensure the functionality and configuration of the NLU (Natural Language Understanding) - Classify Content settings on the page and post screen.
Steps:
- Navigate to WP Dashboard > Tools > ClassifAI > Language Processing > IBM Watson > Natural Language Understanding Screen.
- Check the setting 'Classify Content'.
- Scroll to the bottom of the setting page and enable the setting 'Post Types to Classify'.
- Select 'Post' and 'Pages'.
- Enable checkbox for 'Category' and select 'Watson Category' from the dropdown.
- Save the setting by clicking the 'Save Changes' button.
Expected Result:
- Navigate to WP Dashboard > Pages or Posts
- Open any Post/Page or create a new Post/Page
- Look at Post/Page editor right-hand sidebar section
- 'Watson Categories' section should appear.
Steps:
- Navigate to WP Dashboard > Tools > ClassifAI > Language Processing > IBM Watson > Natural Language Understanding Screen.
- Check the setting 'Enable Role-Based Access'.
- The user role list should open, displaying all WP roles.
- Enable a user role (for example editor) to use the Classify setting.
- Save the setting.
Expected Result:
After saving the setting, only the allowed user role (for example: editor)should have access to the Classify setting on the page/post edit screen.
Steps:
- Follow the steps from the previous test case: "NLU - Verify Setting 'Enable Role-Based Access.'"
- Create a new user with the editor user role.
- Create or edit a page/post using the newly created user.
- Observe the ClassifAI section in the sidebar.
Expected Result:
A user with the editor role should be able to see the ClassifAI settings in the sidebar when creating or editing a page/post.
Steps:
- Follow the steps from the previous test case: "NLU - Verify Setting 'Enable Role-Based Access.'"
- 'Enable Role-Based Access' setting is unchecked for the editor role.
- Create a new user with the editor user role.
- Create or edit a page/post using the newly created user.
- Observe the ClassifAI section in the sidebar.
Expected Result:
A user with the editor role should not be able to see the ClassifAI settings in the sidebar when creating or editing a page/post since the editor role is not checked in the 'Enable Role-Based Access' setting.
Steps:
- Navigate to WP Dashboard > Tools > ClassifAI > Language Processing > IBM Watson > Natural Language Understanding Screen.
- Check the setting "Enable User-Based Access."
- Option to select users will be displayed.
- Select a user to enable for Classifying Content.
- Save the setting.
- Log in with the selected user account.
- Create or edit a page/post.
- Observe the ClassifAI section in the sidebar.
Expected Result:
After saving the setting and logging in with the selected user account, the user should be able to see the ClassifAI settings in the sidebar when creating or editing a page/post.
Steps:
- Navigate to WP Dashboard > Tools > ClassifAI > Language Processing > IBM Watson > Natural Language Understanding Screen.
- Check the setting "Enable User-Based Opt-Out."
- Save the setting.
- Log in with any other user account.
- Go to the user profile page for the selected user.
- Look for the option to opt-out from Classifying Content.
Expected Result:
- After saving the setting and logging in with the selected user account, the user should be able to see an option to opt-out from Classifying Content on their user profile page.
- After enabling the setting 'Opt out of using the classify content feature.' user should not see the ClassifAI features on edit/new post/page.