-
Notifications
You must be signed in to change notification settings - Fork 53
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.
Test Steps:
- Navigate to the WP Dashboard > Tools > ClassifAI > Language Processing > IBM Watson > Natural Language Understanding Screen.
- Access the 'Post Types to Classify' setting.
- Activate the Classify feature for a specific post type (e.g., WP Post).
- Save the setting to apply changes.
- Log in as a user with post/page management access.
- Open a post that has been enabled in the setting, such as a WP Post.
Expected Result:
The Classify setting should be visible in the sidebar, indicating that the classification feature is available for the selected post type.
Test Steps:
- Navigate to the WP Dashboard > Tools > ClassifAI > Language Processing > IBM Watson > Natural Language Understanding Screen.
- Access the 'Post Types to Classify' setting.
- Ensure that the Classify feature is disabled for all post types.
- Save the setting to apply changes.
- Log in as a user with post/page management access.
- Open a post type that has been disabled for classification (e.g., WP Post).
Expected Result:
The Classify setting should not appear in the sidebar of WP Post Type., indicating that the classification feature is not available for the selected post type. This ensures that the negative scenario is correctly handled, and users are unable to access the classification feature for post types that have not been enabled in the setting.
Test Steps:
- Navigate to the WP Dashboard > Tools > ClassifAI > Language Processing > IBM Watson > Natural Language Understanding Screen.
- Access the 'Post Types to Classify' setting.
- Create a new Custom Post Type (e.g., Poems.) Refer to this guide if the site doesn't have any CPT
- Enable the Classify feature for a custom post type (e.g., Poems.)
- Save the setting to apply changes.
- Log in as a user with post/page management access.
- Create a new post of the custom post type Poems.
Expected Result:
- Newly created CPT should be visible in the list of options of Post Types to Classify.
- The Classify setting should be visible in the sidebar when editing the post of the custom post type e.g., Poems.
Test Steps:
- Navigate to the WP Dashboard.
- Go to 'Tools' > 'ClassifAI' > 'Language Processing' > 'IBM Watson' > 'Natural Language Understanding' Screen.
- Ensure that checkbox options for Category, Keyword, Entity, and Concept are available.
- Select the option for any taxonomy (e.g., Category).
- Set the Threshold value for the taxonomy.
- Select the Category Taxonomy option from the dropdown(e.g., Watson Category)
- Save the changes.
- Navigate to the 'Preview Language Processing' screen.
Expected Result:
- Verify that all enabled taxonomy(ies) (e.g., Category) appear under the 'Preview Language Processing' screen.
- The selected taxonomy appears in the preview, indicating a successful setup.
Test Steps:
- Navigate to the WP Dashboard.
- Go to 'Tools' > 'ClassifAI' > 'Language Processing' > 'IBM Watson' > 'Natural Language Understanding' Screen.
- Enable some taxonomies (e.g., Category) for ClassifAI.
- Save the changes.
- Navigate to a 'Post' or 'Page' creation/editing screen.
- Check the available taxonomies for classification in the sidebar
Setting | Page Editor |
---|---|
Expected Result:
Only the enabled taxonomies (e.g., Category) appear for classification.
To verify that the 'Automatically Tag Content on Update' setting correctly fills taxonomy fields when enabled on the post/page editor.
Test Steps:
- Navigate to the WP Dashboard.
- Go to a 'Post' or 'Page' creation/editing screen.
- Locate the 'Automatically Tag Content on Update' setting.
- Enable the 'Automatically Tag Content on Update' setting.
- Update the content of the post/page.
- Check the respective taxonomy fields after the update.
Expected Result:
The taxonomy fields should be automatically filled with relevant tags based on the updated content when the 'Automatically Tag Content on Update' setting is enabled.
To verify that, when the 'Automatically Tag Content on Update' setting is disabled, the 'Suggest Terms & Tags' button is enabled on the post/page editor.
Test Steps:
- Navigate to the WP Dashboard.
- Go to a 'Post' or 'Page' creation/editing screen.
- Locate the 'Automatically Tag Content on Update' setting.
- Ensure the 'Automatically Tag Content on Update' setting is disabled.
- Check the status of the 'Suggest Terms & Tags' button.
Expected Result:
The 'Suggest Terms & Tags' button should be enabled, allowing users to manually suggest terms and tags when the 'Automatically Tag Content on Update' setting is disabled.
To verify that the 'Confirm Post Classification' pop-up appears when clicking the 'Suggest Terms & Tags' button on the post/page editor.
Test Steps:
- Navigate to the WP Dashboard.
- Go to a 'Post' or 'Page' creation/editing screen.
- Locate the 'Suggest Terms & Tags' button.
- Click on the 'Suggest Terms & Tags' button.
Screenshot
Expected Result:
A 'Confirm Post Classification' pop-up should appear, requesting confirmation before proceeding with term and tag suggestions. The pop-up should provide options to add or remove terms.