@insights_regression
@insights_my_catalog
@insights_my_catalog_videos
Feature: My Catalog Videos Tab

  Background: Account Page is opened in default state
    Given an orchard employee insightsemployee for insights
    And I log in
    And I visit the insights /catalog/videos?offset=0&limit=2 page

  @IN-12848
  @id_2da9580c1d2ab403d4d52badf9dc8684fa136c032360175514d4d1aa9cf7e7eb
  Scenario: [Regression][My Catalog][Videos] - links and columns
    And I can see My Catalog page with the videos table
    And I can verify links on My Catalog - Videos tab
    And I can verify table columns on the page with months columns: Video|Channel|Label|All TimeViews|All TimeEstimated Gross Revenue|All TimeAverage View Duration

  @IN-12849
  @id_1bbd5bb826072c289938669784f670ae0bf4546a6cb2eeeb4d94ee0c255f94b5
  Scenario: [Regression][My Catalog][Videos] - filters
    When I can filter by Channel on My Catalog - Videos tab
    Then I can see table data is correct on My Catalog - Videos tab
    And I can clear filters on My Catalog - Videos tab
    Then I can filter by Label on My Catalog - Videos tab
    And I can see table data is correct on My Catalog - Videos tab
    And I can clear filters on My Catalog - Videos tab
    And I can see table data is correct on My Catalog - Videos tab

  @IN-12870
  @id_be2bccacbca27dca23f9ba9027ed4f119acb3e66814cc18f3f82b42ceba63851
  Scenario: [Regression][My Catalog][Videos] - customize popup
    And I can see table data is correct on My Catalog - Videos tab
    When I open Customize popup on a grid table
    And I can click on Label column in Customize popup for grid
    Then I can close using cancel Customize popup on a grid table
    And I can see Label column on a grid
    When I open Customize popup on a grid table
    And I can click on Label column in Customize popup for grid
    Then I can close using save Customize popup on a grid table
    And I can't see Label column on a grid
    When I open Customize popup on a grid table
    Then I can close using x-close Customize popup on a grid table

  @IN-12871
  @id_03e0d51f7652134271bf5b979cee9fef152aecde9490e585f975a6a02a3848a9
  Scenario: [Regression][My Catalog][Videos] - sortable columns
    When I click on All TimeViews column to sort desc on My Catalog - Videos tab
    Then I can see list is correct on My Catalog - Videos tab
    When I click on All TimeViews column to sort asc on My Catalog - Videos tab
    Then I can see list is correct on My Catalog - Videos tab
    When I click on All TimeEstimated Gross Revenue column to sort desc on My Catalog - Videos tab
    Then I can see list is correct on My Catalog - Videos tab
    When I click on All TimeEstimated Gross Revenue column to sort asc on My Catalog - Videos tab
    Then I can see list is correct on My Catalog - Videos tab
    When I click on All TimeAverage View Duration column to sort desc on My Catalog - Videos tab
    Then I can see list is correct on My Catalog - Videos tab
    When I click on All TimeAverage View Duration column to sort asc on My Catalog - Videos tab
    Then I can see list is correct on My Catalog - Videos tab

  @IN-12885
  @id_507b47086520e1c06060cb6af5d9a043189e228f729d09ee451cfa8616819864
  Scenario Outline: [Regression][My Catalog][Videos] - table data and export <option>
    When I visit the insights <option> page
    Then I can see table data is correct on My Catalog - Videos tab
    And I can verify exported data from My Catalog - Videos tab

    Examples:
      | option                                                                                                                                                                    |
      | /catalog/videos?country=US                                                                                                                                                |
      | /catalog/videos?country=UY&country=PE&country=FK&country=EC&country=PY&country=CL&country=SR&country=BR&country=CO&country=BO&country=GF&country=GY&country=VE&country=AR |

  @IN-12904
  @id_bfba5475c7d581e0e1a45fa2d0571769ba05678002493dcb4e2da164f8b25a83
  Scenario: [Regression][My Catalog][Videos] - tooltips
    And I can see tooltip for Video on My Catalog - Videos tab

  @IN-12918
  @id_3d8c776d3835399a3f19913588e02170ebf2418544d3bc1bcfd461f48e23d487
  Scenario Outline: [Regression][My Catalog][Videos] - links <option>
    And I can open <option> page from Videos tab

    Examples:
      | option  |
      | video   |
      | channel |
