@insights_regression
@insights_song
@IN-12498
Feature: Song Overview POT By Source Filters

  Background: [Regression][Song] By Source > Filters verification.
    Given an orchard employee multiaccount1 for insights
    And I log in
    And I visit the insights /song/QMFME2364182 page
    And I can see the performance graph with data
    And I switch POT Dimension segment to By Source

  @id_c19d96f993e010b2bc064bda16aff45b052bad8958de7adceba34cea19e8dc50
  Scenario: [Regression][Song page] By Source - Source filter
    Then I see POT Source filter is disabled
    When I set POT Store filter to Spotify
    And I can see the performance graph with data
    Then I see POT Source filter is set to All Sources
    And I can verify POT Sources filter has only options: Album Page,Artist Page,Chart,Collection,Mix,Discover Weekly,Other,Play Queue,Playlists,Radio,Release Radar,Search
    When I set POT Source filter to Album Page
    Then I can see the performance graph with data

    When I clear Store filter
    And I set POT Store filter to Apple Music
    Then I see POT Source filter is set to All Sources
    And I can verify POT Sources filter has only options: Discovery,External,Library,MusicKit,Now Playing,Other,Search,Voice
    When I set POT Source filter to Discovery,Library
    Then I can see the performance graph with data

    When I clear Source filter
    Then I see POT Source filter is set to All Sources

  @id_75a8454f41b46d86b54aa5f562117670bb7bd05752426e14c16877cabe76abe1
  Scenario: [Regression][Song page] By Source - Detailed View OFF
    When I set POT Store filter to Spotify
    And I can see the performance graph with data
    And I set POT Source filter to Album Page
    And I can see the performance graph with data
    When I switch POT Detailed View OFF
    Then I see POT Source filter is disabled
    When I switch POT Detailed View ON
    Then I see POT Source filter is set to All Sources
