@insights_regression
@insights_song
@insights_song_playlists
Feature: Song Playlists Tab Default Sorting

  @IN-13264
  @id_54c13591374d1bf7c04384f9ff0d4f96f96d69b8a1660f9978b37b3c87a284d0
  Scenario: [Song> Playlists tab] Sorting verification. - default, non sortable columns, pagination
    Given an orchard employee multiaccount1 for insights
    And I log in
    When I visit the insights /song/QM6MZ2214888/playlists?offset=0&playlistAppearances=current&limit=10 page
    Then I can verify "orderBy":"streams_last_7_days" in @soundRecordingPlaylistPlacements request
    And I can verify "orderDir":"desc" in @soundRecordingPlaylistPlacements request
    And I save the list of playlists on Song page
    Then I click on C M column title on Playlists tab
    And I see the same playlist list on Song page
    Then I click on Days On column title on Playlists tab
    And I refresh the page
    Then I can verify "orderBy":"days_on_playlist" in @soundRecordingPlaylistPlacements request
    And I can verify "orderDir":"asc" in @soundRecordingPlaylistPlacements request
    And I can click on next arrow popover in the grid
    Then I can verify "orderBy":"days_on_playlist" in @soundRecordingPlaylistPlacements request
    And I can verify "orderDir":"asc" in @soundRecordingPlaylistPlacements request
