@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
    And I select Bad Seed in the moneyhub vendor filter
    And I intercept calls to revenueByStore
    When I navigate to the highlights Stores tab
    Then The highlights stores page displays correctly
    And The highlights stores page data updates when the period is set to Since First Statement Period
    When I select Checked Label Services in the moneyhub vendor filter
    And I can filter the highlights page by the store name Spotify
    Then I can check that the highlights stores filter changes the pagination dynamically with letter a

  # 2026-01-28: Deactivated due to bug with sorting [WAR-3031]
  @wip
  @id_e8b5b43fcb0b3aeefbac13b5aa8d981c0e15c081c2f9255f8e6415816395430f
  Scenario: Highlights Stores sort and pagination works correctly
    Given an orchard employee label_6971 for moneyhub
    And I log in
    And I select Checked Label Services in the moneyhub vendor filter
    And I intercept calls to revenueByStore
    When I navigate to the highlights Stores tab
    Then The highlights stores table is sorted by Net Revenue
    And The highlights stores page paginates correctly
    When I sort by Store, asc on the highlights stores page
    Then The highlights stores table is sorted by Store
    When I sort by Net Revenue, asc on the highlights stores page
    Then The highlights stores table is sorted by Net Revenue
