@insights_regression
@insights_trending
@IN-15178
Feature: Trending Songs Sorting

  @id_716be7309f205da4633ba3d9150dcdb9d3ad5ef687eb73cddbb7ad94c946b0e3
  Scenario: [Regression][Trending Songs] - table sorting
    Given an orchard employee insightsreal for insights
    And I log in to Insights silently
    When I visit the insights trending/songs page
    Then I can verify "orderBy":"DAYS_TRENDING" in @globalSoundRecordingTadasTrends request
    And I can verify "orderDir":"ASC" in @globalSoundRecordingTadasTrends request

    When I click on Days Trending column title
    Then I can verify "orderBy":"DAYS_TRENDING" in @globalSoundRecordingTadasTrends request
    And I can verify "orderDir":"DESC" in @globalSoundRecordingTadasTrends request
    And I see Songs Trending table content sorted by Days Trending DESC

    When I click on Trending Start Date column title
    Then I can verify "orderBy":"TRENDING_START_DATE" in @globalSoundRecordingTadasTrends request
    And I can verify "orderDir":"DESC" in @globalSoundRecordingTadasTrends request
    And I see Songs Trending table content sorted by Trending Start Date DESC
