@insights_regression
@insights_video
Feature: Video Page UGC tab

  @IN-12472
  @id_5293ae14db90a02ff83368826438a9caf29fd0acea09e4ec6e3f41210c1c55d6
  Scenario: Video Page UGC tab - Store Status popup, columns, tooltips, sorting
    Given an orchard employee insightsemployee for insights
    And I log in to Insights silently
    When I visit the insights /video/a1Femq4NPxs/ugc?offset=0&limit=2 page
    And Then I can verify table columns on the page: Video|Channel|Release Date|All TimeViews|Claim Date|Claim Policy|Claim Type
    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 to Insights silently
    When I visit the insights /video/a1Femq4NPxs/ugc?offset=0&limit=1&claims=visual page
    And I can choose United States market in market selector
    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
    And 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 to Insights silently
    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
