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

  @IN-12206
  @id_4f468247cd6e69143e0fbae3f305d15a65694e9b5bdbb8f0ad6153d66a9d9c38
  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_cdb7e1e0c91dbffb7bceed0e508703b3a775da15e604b79f24f65f20f901161c
  Scenario Outline: [Regression][Song][Playlist Digest] Table view verification for <column> column
    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 |
