@analytics
Feature: Analytics Top Charts
# TODO: move this to SPA SA once AnalyticsTopChartsPage is under SPA
  # May 2, 2018: Commented out | album_downloads | project | due to a project
  # not being found on analytics overview.
  # TODO: Reenable when DS-1131 is resolved
  # DATA-4319
  # DATA-4320
  # DATA-4321
  # DATA-4322
  Scenario Outline: See filtered data channel overviews for top items
    Given a Workstation label_9808 user
    And I go to the Workstation::AnalyticsTopChartsPage from the overview page
    And I select the "<channel>" channel
    When I view the overview for a top <record>
    Then I should see "<record>s" as the active view-by
    And I should see "1 Month" as the active period
    Then I should see the correct overview record displayed for that <record>
    And I should see the correct overview for that <data_channel>

    Examples:
      | channel              | record  | data_channel            |
      | album_downloads      | artist  | project                 |
#      | album_downloads      | project | project                 |
      | track_downloads      | artist  | track                   |
      | track_downloads      | project | track                   |
      | track_downloads      | track   | track                   |
      | subscription_streams | artist  | subscription streams    |
      | subscription_streams | project | subscription streams    |
      | subscription_streams | track   | subscription streams    |
      | ad_supported_streams | artist  | ad subscription streams |
      | ad_supported_streams | project | ad subscription streams |
      | ad_supported_streams | track   | ad subscription streams |
