@insights_regression
@insights_song
@insights_song_playlist_digest
Feature: Song Page Playlist Digest Table View

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

  @IN-12206
  @id_f772c7c4648e0bc53cc7e9d410dc602fcb3c1b4c9593b8d29d302746c3452f76
  Scenario: [Regression][Song][Playlist Digest] Table view verification. - default view
    When I visit the insights /song/QMFME2364182 page
    And I switch to table view for Playlist Digest on Song page
    Then I can verify list of playlists table view on Playlist Digest Song page
    And I can verify columns on Playlist Digest Song page
    And I can verify columns values and 28 Days streams corresponds to api on table view Playlist Digest Song page
    And I can verify hover playlist name on Playlist Digest Song page

  @IN-12207
  @IN-12208
  @id_18659f3b2449bb01c0185c23823fe8da8a3ab99c162016b24b7a7da5f49c7896
  Scenario Outline: [Regression][Song][Playlist Digest] Table view verification for <column> column (<page>)
    When I visit the insights <page> page
    And I switch to table view for Playlist Digest on Song page
    Then I can verify columns values and <column> streams corresponds to api on table view Playlist Digest 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 |
      | /song/QMFME2364182/?period=first7&playlistAppearances=recent_last_7_days      | All Time |
