Title
Fetching merchandising data from PUMA's own database
Scenario 1 : Visiting the Merchandising page
When: I visit the merchandising page
Then: I should see the Merchandising header
Scenario 2 : Opening details of a row
Given: the product actions table has successfully loaded data
When:I click on a particular row
Then: the row should expand
And: show an image of the product with description
Scenario 3: Opening details of a row when another row is expandedÂ
Given: another row is already expanded
When: I expand another row
Then: the previous one will close
And: the new one will open
Scenario 4: Sorting the rows
Given: the product actions table has successfully loaded data
And: the product actions table is currently sorted by "<column>" in ascending order
When: I press the "<column>" header on the product actions table
Then:the table should be sorted in descending order by "<column>"
Title
Fetching competitor data from database after scraping Merchant APIs
Scenario 1 : Visiting the Competitors page of "<competitor>"
When: I visit the Competitors page of "<competitor>"
Then: I should see the "<competitor>" competitor header
Scenario 2 : Loading top performing products section
When:I navigate to the top performing products section
Then: I should see the Shopee/Lazada toggle
And: I should see top five performing products based on number sold
Scenario 3: Loading competitors section
When: I navigate to the competitors section
Then: I should see the competitors table
Scenario 4: Viewing details of a top performing product
Given: the top five performing products section have successfuly loaded data
When: I click on a particular card
Then: I should be directed to the merchant site of the product in the card
Scenario 5: Viewing details of a product
Given: the top five performing products section have successfuly loaded data
When: I click on a particular card
Then: I should be directed to the merchant site of the product in the card
Scenario 6: Sorting the rows
Given: the competitors table has successfully loaded data
And: the competitors table is currently sorted by "<column>" in ascending order
When: I press the "<column>" header on the competitors table
Then: the competitors table should be sorted in descending order by "<column>"