SPRINT 3
SPRINT 3
Harnessing The Power of AGILE
Feature: Distribution of Categories
Scenario 1: Normal View
Given I am on the Dashboard Page,
And I have selected Time Period, Products, Sources
Then I should see a sunburst graph titled "Distribution of Categories"
And columns "Categories", "Total mentioned" and "Avg. Sentiment"
And top 3 rows with the highest "Total mentioned", sorted in descending order
And I should be able to hover over it to reveal its category
And their percentage contribution as float numbers
Sad Scenario 2: Insufficient overall data
Given I am on the Dashboard Page,
And only a few Products and Sources are selected or a very short Time period Eg. 1 day is selected such that there is very little data over time
Then I should see an error message "No data"
And no graph
Feature: Top 5 Positive Categories
Scenario 1: Display at most top 5 positive categories
Given I am on the dashboard page
Then I should see a horizontal bar graph titled "Top 5 Positive Subcategories"
And I should see at most top 5 subcategories with the highest positive sentiments, sorted in descending order
And the X-ticks as integers from 0 to 100
And the Y-ticks as "Product > Subcategory"
And I should be able to hover over it to reveal its "Sentiment: {Percentage}"
Sad Scenario 2: Insufficient overall data
Given I am on the Dashboard Page,
And only a few Products and Sources are selected or a very short Time period Eg. 1 day is selected such that there is very little data over time
Then I should see an error message "No data"
And no graph
Sad Scenario 3: Less than 5 categories
Given I am on the dashboard page
When there is less than 5 categories in the selected products and sources
Then I should see only those categories, still sorted in descending order of positive sentiments
Feature: Top 5 Negative Categories
Scenario 1: Display at most top 5 negative categories
Given I am on the dashboard page
Then I should see a horizontal bar graph titled "Top 5 Negative Subcategories"
And I should see at most top 5 subcategories with the highest negative sentiments, sorted in descending order
And the X-ticks as integers from 0 to 100
And the Y-ticks as "Product > Subcategory"
And I should be able to hover over it to reveal its "Sentiment: {Percentage}"
Sad Scenario 2: Insufficient overall data
Given I am on the Dashboard Page,
And only a few Products and Sources are selected or a very short Time period Eg. 1 day is selected such that there is very little data over time
Then I should see an error message "No data"
And no graph
Sad Scenario 3: Less than 5 categories
Given I am on the dashboard page
When there is less than 5 categories in the selected products and sources
Then I should see only those categories, still sorted in descending order of negative sentiments
Feature: Detailed Sentiment Trend Over Time for Selected Subcategories
Scenario 1: Normal View
Given I am on the Sentiment Trend on Analytics Page,
Then I should see a line graph titled "Sentiment vs Time trend for selected Subcategories"
And an enabled "Subcategory", disabled "Feedback Category" dropdown buttons
Scenario 2: Available Subcategory dropdown options
Given I am on the Sentiment Trend on Analytics Page,
And Products and Sources are selected
When I click on the "Subcategory" dropdown button
Then I should see all the subcategories of all the selected products as dropdown options
Scenario 3: Available Feedback Category dropdown options
Given I am on the Sentiment Trend on Analytics Page,
And Products and Sources and Subcategory are selected
When I click on the "Feedback Category" dropdown button
Then I should see all the feedback categories of all the selected subcategories as dropdown options
Scenario 4: Hovering on a dropdown option updates its color
Given I am on the Sentiment Trend on Analytics Page,
And Products and Sources are selected
When I click on the "Subcategory" dropdown button
And I hover on a dropdown option
Then the dropdown option should be highlighted
Scenario 5: Selecting a subcategory highlights it and adds it to the listbox
Given I am on the Sentiment Trend on Analytics Page,
When I click on the "Subcategory" dropdown button
And I select a subcategory
Then the selected subcategory dropdown option should be red
And the dropdown should close
And the selected subcategory is added to the listbox
Scenario 6: Selecting a feedback category highlights it and adds it to the listbox
Given I am on the Sentiment Trend on Analytics Page,
When I click on the "Feedback Category" dropdown button
And I select a feedback category
Then the selected feedback category dropdown option should be red
And the dropdown should close
And the selected feedback category is added to the listbox
Scenario 7: Selection from 1 dropdown option updates the visualizations
Given I am on the Sentiment Trend on Analytics Page,
When I have selected both a subcategory and feedback category
Then I should see the title change to "Sentiment Trend for {selected Subcategory}"
And the X-ticks as dates in format "MONTH DATE"
And the Y-ticks as float numbers
And I should be able to hover over it to reveal its MONTH DATE and sentiment score
Sad Scenario 8: Insufficient overall data
Given I am on the Sentiment Trend on Analytics Page,
And only a few Products and Sources are selected or a very short Time period Eg. 1 day is selected such that there is very little data over time
Then I should see an error message "No data"
And no graph
Feature: Sentiment Categorisation
Scenario 1: Normal view
Given I am on the Sentiment Categorisation on Analytics Page
Then I should see a horizontal bar graph titled "Categorisation vs Sentiment"
And a "Subcategory" dropdown button
Scenario 2: Available dropdown options
Given I am on the Sentiment Categorisation on Analytics Page
And Products and Sources are selected
When I click on the "Subcategory" dropdown button
Then I should see all the subcategories of selected products in "Subcategory" as dropdown options
Scenario 3: Hovering on a dropdown option updates its color
Given I am on the Sentiment Categorisation on Analytics Page
And Products and Sources are selected
When I click on the "Subcategory" dropdown button
And I hover on a dropdown option
Then the dropdown option should be highlighted
Scenario 4: Selecting a subcategory highlights it and adds it to the listbox
Given I am on the Sentiment Categorisation on Analytics Page
When I click on the "Subcategory" dropdown button
And I select a subcategory
Then the selected subcategory dropdown option should be red
And the dropdown should close
And the selected subcategory is added to the listbox
Scenario 5: Selection from 1 dropdown option updates the visualizations
Given I am on the Sentiment Categorisation on Analytics Page
When I have selected a subcategory
Then I should see at most top 5 subcategories with the highest positive sentiments, sorted in descending order
And the X-ticks as integers from 0 to 100
And the Y-ticks as "Subcategory > Feedback category"
And I should be able to hover over it to reveal its "Sentiment: {Percentage}"
And a "sort" button and "view all" button
Scenario 6: Sort positive to negative sentiment in descending order and vice versa
Given I am on the Sentiment Categorisation on Analytics Page
And Products and Sources are selected
And the categories are currently sorted in descending order of positive sentiment
When I click on the "sort" button
Then I should see the categories sorted in descending order of negative sentiment
Scenario 7: View all
Given I am on the Sentiment Categorisation on Analytics Page
And Products and Sources are selected
When I click "view all"
Then I should see all categories sorted in the same previous order of sentiment (the top 5 should remain the same)
Scenario 8: View less
Given I am on the Sentiment Categorisation on Analytics Page And Products and Sources are selected
When I see the top 10 categories sorted
And I click "view less"
Then I should see only the top 5 categories sorted in the same previous order of sentiment
Scenario 9: Investigate into relevant feedback for a specific category
Given I am on the Sentiment Categorisation on Analytics Page
When I click on "Credit Card > Perks" category
Then I should see a pop-up beside the Sentiment Categorisation with all the feedback that are categorised as ‘Credit Card > Perks’
And a button to minimize this pop-up
Sad Scenario 10: Insufficient overall data
Given I am on the Sentiment Categorisation on Analytics Page,
And only a few Products and Sources are selected such that there is very little data and only 1 categories can be visualized
Then I should see only 1 categories
And clicking on "view all" would not add more categories to view
And clicking "sort" would seem like it did not change the order
Rspec Report (100%)
Cucumber Report (100%)
Feature: Distribution of Categories
Feature: Top 5 Positive Categories
Feature: Top 5 Negative Categories
Feature: Detailed Sentiment Trend Over Time for Selected Subcategories
Feature: Sentiment Categorisation
The following is our Cucumber report that was generated for Sprint 3.
JestJS Report (100%)