@moneyhub
Feature: Highlights Stores

  @id_342eb6088e01dfdd9afb254ec031a88fdbabd9f1c4ed28085881ac5cf3e272cf
  Scenario: Highlights Stores page display, period filter and store filter works correctly
    Given an orchard employee label_6971 for moneyhub
    And I log in to moneyhub silently
    And I select Bad Seed in the vendor filter
    And I intercept calls to revenueByStore
    When I navigate to Stores tab
    Then The stores page displays correctly
    And The highlights stores page data updates when the period is set to Custom Period Range
    And I select Checked Label Services in the vendor filter
    Then I can filter by the store name Spotify
    Then I can check that stores filter changes the pagination dynamically with letter a

  @id_e8b5b43fcb0b3aeefbac13b5aa8d981c0e15c081c2f9255f8e6415816395430f
  Scenario: Highlights Stores sort and pagination works correctly
    Given an orchard employee label_6971 for moneyhub
    And I log in to moneyhub silently
    And I select Checked Label Services in the vendor filter
    And I intercept calls to revenueByStore
    And I navigate to Stores tab
    Then The store table is sorted by Net Revenue
    And the highlights store page paginates
    And I sort by Store on Stores page
    Then The store table is sorted by Store
    And I sort by Net Revenue on Stores page
    Then The store table is sorted by Net Revenue
