@insights_regression
@insights_video
@insights_video_ugc
Feature: Video Page UGC tab

  @IN-12472
  @id_1efb177e3918936d261171a1f8f18b56ef8d0aaaf7054f6274d3f4d203923b74
  Scenario: Video Page UGC tab - columns, tooltips, sorting
    Given an orchard employee insightsemployee for insights
    And I log in
    When I visit the insights /video/a1Femq4NPxs/ugc?offset=0&limit=2 page
    And I can verify UGC table columns on Video page
    And I can verify tooltip for Claim Date on Video page
    And I can verify tooltip for Claim Policy on Video page
    When I click on Release Date column title
    Then I can verify video list on Video page
    And I can verify "orderBy":"release_date" in @topUGCQuery request
    And I can verify "orderDir":"desc" in @topUGCQuery request
    When I click on All TimeViews column title
    Then I can verify video list on Video page
    And I can verify "orderBy":"views" in @topUGCQuery request
    And I can verify "orderDir":"desc" in @topUGCQuery request
    When I click on Claim Date column title
    Then I can verify video list on Video page
    And I can verify "orderBy":"claim_created_date" in @topUGCQuery request
    And I can verify "orderDir":"desc" in @topUGCQuery request
    When I click on Claim Date column title
    Then I can verify video list on Video page
    And I can verify "orderBy":"claim_created_date" in @topUGCQuery request
    And I can verify "orderDir":"asc" in @topUGCQuery request

  @IN-124721
  @id_5dfb118810af83c0993790b31a9d772382aa770490d22f25d95fd1318de43168
  Scenario: Video Page UGC tab - filters
    Given an orchard employee insightsemployee for insights
    And I log in
    When I visit the insights /video/a1Femq4NPxs/ugc?offset=0&limit=1&claims=visual page
    And I select United States country in Market filter
    Then I can verify video list on Video page
    And I search for sDsEFSdsdsd item on the page
    Then "No Results" message on the page
    And I clear search filter
    When I can clear all table filters on UGC tab
    Then I can verify video list on Video page
    When I visit the insights /video/a1Femq4NPxs/ugc?offset=0&limit=1&claims=audiovisual page
    Then I can verify video list on Video page

  @IN-124722
  @id_a0e1f1877c5184734112f8b45b70eea76fb04c930ef724b9859ba85dc9eaee8a
  Scenario: Video Page UGC tab - hovers long
    Given an orchard employee insightsemployee for insights
    And I log in
    When I visit the insights /video/a1Femq4NPxs/ugc?offset=0&limit=1 page
    Then I can see tooltip for Video on Video - Videos tab
    And I can see tooltip for Channel on Video - Videos tab
