@insights_regression
@insights_song
@insights_song_playlists
Feature: Song Playlists Tab Sorting By Column - 1

  @IN-13264
  @id_7f3010863e6e7713753531706aec56943e5acaf66da0ebbf94179aa643c955b9
  Scenario Outline: [Song> Playlists tab] Sorting verification. - <column> column
    Given a user from single_label for insights
    And I log in
    When I visit the insights /song/QM6MZ2214888/playlists?offset=0&playlistAppearances=<appearances>&limit=10 page
    And I can apply all columns on playlists on Song page
    And I click on <column> column title on Playlists tab
    Then I can verify "orderBy":"<orderByColumn>" in @soundRecordingPlaylistPlacements request
    And I can verify "orderDir":"<sort1>" in @soundRecordingPlaylistPlacements request
    And I can verify data playlists on Song page
    And I click on <column> column title on Playlists tab
    Then I can verify "orderBy":"<orderByColumn>" in @soundRecordingPlaylistPlacements request
    And I can verify "orderDir":"<sort2>" in @soundRecordingPlaylistPlacements request
    And I can verify data playlists on Song page

    Examples:
      | appearances | column        | sort1 | sort2 | orderByColumn           |
      | past        | Playlist      | asc   | desc  | playlist_name           |
      | current     | Position      | asc   | desc  | current_position        |
      | past        | Trend         | desc  | asc   | position_change         |
      | current     | Days On       | asc   | desc  | days_on_playlist        |
      | past        | Followers     | desc  | asc   | playlist_follower_count |
      | current     | Peak Position | asc   | desc  | peak_position           |
