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

  @id_4f9f696619189cf6cfef78f3ae20d1b0c8530edee2a4d127cf8eb7cd237f6baf
  Scenario: [Regression][Trending Songs] - table sorting
    Given an orchard employee insightsreal for insights
    And I log in
    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 on Songs Trending page
    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 on Songs Trending page
    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
