Feature: Analytics Breakdown

  Background: Clear Browser
    Given I have a clear browser

  @analytics
  @frontend_analytics
  @frontend_engagement
  @id_ea80d5c8e24b4d62de3ee28b8ab72da682ed38d53259a12c5103c727065d2eaf
  Scenario Outline: Channel Breakdowns
    Given an orchard employee label_9808 for workstation
    And I login silently to workstation and visit the analytics overview page
    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
  @oaworkstation
  @id_b6b025438aaae618913455f2fb80b95162bd383e3f37123180d01f0f3eb9203e
  @wip
  Scenario: Search 2 tracks taken from new react home and verify streams
    Given an orchard employee label_9808 for workstation
    And I login silently to workstation and visit the home page
    And I have the top 2 performing tracks
    When I filter for the 2 top tracks in analytics overview
    And I select a 6 Month period
    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
  @oaworkstation
  @id_de1e8d35f3aa18cca6715132b61a876a197e521c8eb8956385100f9cf9c43c22
  Scenario: Download Tracks graph verification
    Given an orchard employee label_9808 for workstation
    And I login silently to workstation and visit the analytics overview page
    When I view Download Tracks broken down by Product
    And I select a single product from the list
    And I use my browser's back button
    Then the download tracks graph should display correctly on the overview page
