Title
Fetching sales data for a specific product category relative to PUMA’s own data.
Narrative
As a marketing analyst in PUMA,
I want to be able to see the sales data of a specific product category in a bar graph,
so that I am able to produce well-calculated strategies to improve our market share.
Scenario 1 (Happy): Fetching sales data
Given: I am in preset selection mode,
When: I select “Last 12 months,”
Then: the search section should blur,
Then: I should see the queried data reflected on the graph under the search section,
And: the header on top of the table should reflect the query parameters.
Scenario 2 (Sad): Search timeout
Given: I have submitted a search,
When: there is no response from the server,
Then: I should receive a search timeout message modal.
Scenario 3 (Happy): Switching graph - Product Revenue
Given: I have submitted a search,
And: the segment control is not currently on “Product Frequency,”
When: I click on the “Product Frequency” graph segment,
Then: the current graph should be replaced by the “Product Frequency” graph.
Scenario 4 (Happy): Switching graph - Product Revenue
Given: I have submitted a search,
And: the segment control is not currently on “Product Revenue,”
When: I click on the “Product Revenue” graph segment,
Then: the current graph should be replaced by the “Product Revenue” graph.
Scenario 5 (Happy): Switching graph - Apparel Frequency
Given: I have submitted a search,
And: the segment control is not currently on “Apparel Frequency,”
When: I click on the “Apparel Frequency” graph segment,
Then: the current graph should be replaced by the “Apparel Frequency” graph.
Scenario 6 (Happy): Switching graph - Apparel Revenue
Given: I have submitted a search,
And: the segment control is not currently on “Apparel Revenue,”
When: I click on the “Apparel Frequency” graph segment,
Then: the current graph should be replaced by the “Apparel Revenue” graph.
Scenario 7 (Sad): Switching graphs - self
Given: I have submitted a search,
And I click on the “Product Units” graph segment,
When I click on the “Product Units” graph segment,
Then: the “Product Units” graph segment should still be visible.