@insights_regression
@insights_song
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 to Insights silently

  @IN-12334
  @id_2a0c32e5414759cb6b159b7a1393c20b2df64f79339b19133969860015806381
  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_999ba97c433171fdd8d22ad73cc7624fca3c5d1eee2d64f78baa62eba0872318
  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_8b24d8a2562690897b3f99f6f4804ca3603813b081a45d0c98a0eb63ccededc8
  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_d7ed009619ba2759754c28b96c43c1c0171179f7d199053b628c2bd7b87bd3de
  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_6a84e0b8fe06434797521c393cbc33d561ff7a4b35bb4ca47b3545934cac7432
  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 |
