Feature: Analytics Breakdown
# TODO: move this to SPA SA once AnalyticsOverviewPage is under SPA
  @analytics
  @frontend_analytics
  @frontend_engagement
  Scenario Outline: Channel Breakdowns
    Given a Workstation label_9808 user
    And I am on the Workstation::AnalyticsOverviewPage
    When I view <data_channel> broken down by <filter>
    Then I should see selected breakdown highlighted

  Examples:
    | data_channel               | filter  |
    | Download Tracks            | Product |
    | Download Tracks            | Country |
    | Download Albums            | Imprint |
    | Download Albums            | Artist  |
    | Ad-Supported Audio Streams | Product |
    | Ad-Supported Audio Streams | Artist  |
    | Subscription Audio Streams | Genre   |
    | Subscription Audio Streams | Imprint |

  @legacy
  @analytics
  Scenario: Search 2 tracks taken from new react home and verify streams
    Given a Workstation label_9808 user
    And I am on the Workstation homepage
    And I have the top 2 performing tracks
    When I filter for the top tracks in analytics overview
    And I apply the selected filters
    Then I should see the Audio Streams section
    And I see the data channels for Audio Streams section

  @legacy
  @analytics
  Scenario: Download Tracks graph verification
    Given a Workstation label_9808 user
    And I am on the Workstation::AnalyticsOverviewPage
    When I view Download Tracks broken down by Product
    And I select a single product
    And I use my browser's back button
    Then the download tracks graph should display correctly on the overview page
