@insights_regression
@insights_trending
@IN-13251
Feature: Trending TikTok Sorting

  @id_130af4ebcf98368415498672703986fcf4d6c1883903ac479de02b5967aa8410
  Scenario: [Regression][Trending TikTok] - table sorting
    Given an orchard employee insightsreal for insights
    And I log in
    When I visit the insights /trending/tiktok page
    Then I can verify "orderBy":"creations_1_day" in @tikTokGainersQuery request
    And I can verify "orderDir":"desc" in @tikTokGainersQuery request

    When I click on 1dCreations column title on TikTok Trending page
    Then I can verify "orderBy":"creations_1_day" in @tikTokGainersQuery request
    And I can verify "orderDir":"asc" in @tikTokGainersQuery request
    And I see TikTok Trending table content sorted by 1dCreations ASC

    When I click on Release Date column title on TikTok Trending page
    Then I can verify "orderBy":"release_date" in @tikTokGainersQuery request
    And I can verify "orderDir":"desc" in @tikTokGainersQuery request
    And I see TikTok Trending table content sorted by Release Date DESC
