@analytics
Feature: Analytics Top Charts

  Background: Clear browser
    Given I have a clear browser

  # DATA-4319
  # DATA-4320
  # DATA-4321
  # DATA-4322
  @id_e60341a007bc5848cf9516ea512e3a287db6de4da65f01b8ab0bdcceb98ca0e8
  Scenario Outline: See filtered data channel overviews for top items
    Given an orchard employee label_9808 for workstation
    And I login silently to workstation and visit the analytics top charts 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
    And I should see the correct overview record displayed for that <record>
    And I should see the correct overview for that <dataChannel>

    Examples:
      | channel              | record  | dataChannel             |
      | 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 |
