@insights_regression
@insights_song
@IN-12375
@IN-12382
@IN-12381
@IN-12383
@IN-12386
Feature: Song Overview POT Export

  @id_4ebb257fee8c2edf410dfe7c34aafda38f1d745fc12f6d63eea56c131077cb08
  Scenario Outline: [Regression][Song page] POT - Export - By Sources
    Given an orchard employee multiaccount1 for insights
    And I log in to Insights silently
    And I visit the insights <url> page
    And I can download csv for Song page
    Then I can verify csv for <dimension>,<metric> on the pot Song page

    Examples:
      | url                                                                       | dimension  | metric |
      | /song/QMFME2364182/?dimension=sourceofstreams&sources=ALBUMPAGE&store=286 | By Sources | -      |
      | /song/QMFME2364182/?dimension=sourceofstreams&sosDetails=false            | By Sources | -      |

  @id_665dcc6237b55f34acbc601a64f640eb5cc1ce7878362b74ccb9541803410347
  Scenario Outline: [Regression][Song page] POT - Export - By Countries, <metric>
    Given an orchard employee multiaccount1 for insights
    And I log in to Insights silently
    And I visit the insights <url> page
    And I can download csv for Song page
    Then I can verify csv for <dimension>,<metric> on the pot Song page

    Examples:
      | url                                                            | dimension    | metric    |
      | /song/QMFME2364182/?pot=streams&dimension=countries&country=US | By Countries | Streams   |
      | /song/QMFME2364182/?pot=downloads&dimension=countries          | By Countries | Downloads |
      | /song/QMFME2364182/?pot=saves&dimension=countries              | By Countries | Saves     |
      | /song/QMFME2364182/?pot=skipRate&dimension=countries           | By Countries | Skip Rate |

  @id_b68f81e15372dd01dbf0f9c8955a8003e5667a0723288b36bed372cd9f627c37
  Scenario Outline: [Regression][Song page] POT - Export - By Stores, <metric>
    Given an orchard employee multiaccount1 for insights
    And I log in to Insights silently
    And I visit the insights <url> page
    And I can download csv for Song page
    Then I can verify csv for <dimension>,<metric> on the pot Song page

    Examples:
      | url                                             | dimension | metric  |
      | /song/QMFME2364182/?pot=streams&dimension=store | By Stores | Streams |
      | /song/QMFME2364182/?pot=saves&dimension=store   | By Stores | Saves   |

  @id_88fdbca5058beca38d54fc17dbfcb8af6451cc651e494b4b4dd4fa3077b32958
  Scenario Outline: [Regression][Song page] POT - Export - By Product, <metric>
    Given an orchard employee multiaccount1 for insights
    And I log in to Insights silently
    And I visit the insights <url> page
    And I can download csv for Song page
    Then I can verify csv for <dimension>,<metric> on the pot Song page

    Examples:
      | url                                                | dimension  | metric    |
      | /song/QMFME2364182/?pot=streams&dimension=product  | By Product | Streams   |
      | /song/QMFME2364182/?pot=skipRate&dimension=product | By Product | Skip Rate |

  @id_1d70add830350579682ae1345a89e6655ac6c827d8a79a5d21f380569843cfe2
  Scenario Outline: [Regression][Song page] POT - Export inactive <url>
    Given an orchard employee multiaccount1 for insights
    And I log in to Insights silently
    And I visit the insights <url> page
    And I can't download csv for Song page

    Examples:
      | url                                                                                              |
      | /song/QMFME2364199/?pot=streams&country=AF&store=213&potGraphType=AREA&dimension=sourceofstreams |
      | /song/QMFME2364199/?pot=streams&store=496                                                        |
      | /song/QMFME2364199/?pot=downloads&store=496&potGraphType=LINE&dimension=countries                |
