@insights_regression
@insights_song
Feature: Song Overview POT By Countries Legend States

  Background: [IN-12184][Song page] [Song>By Country] Legend states verification.
    Given an orchard employee multiaccount1 for insights
    And I log in to Insights silently
    And I visit the insights /song/QMFME2364182 page

  @IN-12317
  @id_26932ac092b3ac3259fe81a5b7f7fe5fba7fb0c01ec6a11bdbbb3cfce1ec5002
  Scenario: [Regression][Song page] [Song>By Country] Legend states verification - no data
    And I switch POT tab to By Countries on Song page
    When I select Google Play store on Song page
    Then "You don’t have any data yet" message on the page
    And I can verify Top Territories is not visible
    And I switch POT tab to By Sources on Song page
    And "You don’t have any data yet" message on the page
    And I can verify Top Territories is not visible

  @IN-12343
  @id_1360d3f6ad28811b97c4cf06a92e5b2f5269604acdb95ab7c5318482911d2d26
  Scenario Outline: [Regression][Song page] [Song>By Country] Legend states verification - <tab> - failed state
    And I switch POT tab to <tab> on Song page
    When I select Amazon Music store on Song page
    Then "Sorry, we hit a snag" message on the page
    And I visit the insights <urlVisit> page
    Then "Sorry, we hit a snag" message on the page
    And "Data failed to load. Please refresh the page." message on the page
    And "REFRESH" message on the page

    Examples:
      | urlVisit                                                                          | tab          |
      | /song/QMFME2364182/?pot=streams&store=187&potGraphType=COLUMN&dimension=countries | By Countries |
      | /song/QMFME2364182/?pot=streams&store=187&potGraphType=COLUMN&dimension=countries | By Sources   |
