@insights_regression
@insights_song
@insights_song_playlist_digest
Feature: Song Page Playlist Digest Summary Section

  Background: Song Page is opened in default state
    Given an orchard employee multiaccount1 for insights
    And I log in

  @IN-12334
  @id_9441ff3322586c7d1b3e8ebe2b7c257bc2ca6e723c95335f6fd7228f4d559894
  Scenario: [Regression][Song][Playlist Digest] Summary section verification. - tooltips
    When I visit the insights /song/QMFME2364182 page
    And I can hover over 28 Days Track Streams in summary section Playlist Digest on Song page
    Then "Aggregated streams across all markets and stores for selected period." message on the page
    And I can hover over All time Count in summary section Playlist Digest on Song page
    Then "Shows all playlist counts across all markets and available playlist stores." message on the page
    And I can hover over Personalized in summary section Playlist Digest on Song page
    Then "A hybrid of editorial and algorithmic playlists. Editors select the pool of tracks in the playlist, while the algorithm decides what tracks & order is served to a listener, based on their unique preferences." message on the page

  @IN-12337
  @id_177e834ab4ae0cee63b3dac89e82abc39424e4707b68f5cdbee72ed4693bdc4d
  Scenario: [Regression][Song][Playlist Digest] Summary section verification. - verify structure
    When I visit the insights /song/QMFME2364182 page
    Then I can structure in summary section Playlist Digest on Song page

  @IN-12340
  @id_91a984ac16f4169a10273f7f500bd4cc3d91191c404d2b25ce81587baf66989d
  Scenario Outline: [Regression][Song][Playlist Digest] Summary section verification. - All playlists section
    When I visit the insights <page> page
    Then I can verify all playlists values for <column> in summary section Playlist Digest on Song page

    Examples:
      | page                                                                      | column   |
      | /song/QMFME2364182/?period=past7&playlistAppearances=recent_last_7_days   | 7 Days   |
      | /song/QMFME2364182/?period=past365&playlistAppearances=recent_last_7_days | 1 Year   |
      | /song/QMFME2364182/?period=first7&playlistAppearances=recent_last_7_days  | All Time |

  @IN-12398
  @id_a05b93f22b07e40c7a548ba16f7487489c1a39de0384e188426cf9a834081b65
  Scenario Outline: [Regression][Song][Playlist Digest] Store section verification.
    When I visit the insights <page> page
    Then I can verify store values for <column> in summary section Playlist Digest on Song page

    Examples:
      | page                                                                          | column   |
      | /song/QMFME2364182/?period=past6Months&playlistAppearances=recent_last_7_days | 6 Months |
      | /song/QMFME2364182/?period=first365&playlistAppearances=recent_last_7_days    | All Time |
      | /song/QMFME2364182/?period=allTime&playlistAppearances=recent_last_7_days     | All Time |

  @IN-12408
  @id_aa3a35881e9d6b6c101ec3626a19ce90fce6d2b7a6acef0b24fe11f6dd7b7283
  Scenario Outline: [Regression][Song][Playlist Digest] Playlist Types section verification.
    When I visit the insights <page> page
    And I switch to table view for Playlist Digest on Song page
    Then I can verify type values for <column> in summary section Playlist Digest on Song page

    Examples:
      | page                                                                          | column   |
      | /song/QMFME2364182/?period=past7&playlistAppearances=recent_last_7_days       | 7 Days   |
      | /song/QMFME2364182/?period=past6Months&playlistAppearances=recent_last_7_days | 6 Months |
      | /song/QMFME2364182/?period=past365&playlistAppearances=recent_last_7_days     | 1 Year   |
      | /song/QMFME2364182/?period=allTime&playlistAppearances=recent_last_7_days     | All Time |
