@insights_regression
@insights_my_catalog
@insights_my_catalog_channels
Feature: My Catalog Channels 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/channels?offset=0&limit=10 page

  @IN-12929
  @id_63e5ab24d0763c9e757c4a0d03d10b628a909d724289cd57e3aad2adca4bacf6
  Scenario: [Regression][My Catalog] YOUTUBE CHANNELS - links and columns
    And I can see My Catalog page with the channels table
    And I can verify links on My Catalog - Channels tab
    Then I can verify table columns on the page with months columns: YouTube Channels|Label|Subscribers|All TimeViews|All TimeEstimated Gross Revenue|All TimeAverage View Duration

  @IN-12947
  @id_461fbd64e1dfae92f9fb1c981a4c4d3a612f5f24f4a7d15660bf9ab5eed5df4a
  Scenario Outline: [Regression][My Catalog] YOUTUBE CHANNELS - list, row and export data <option>
    When I visit the insights <option> page
    Then I can see table data is correct on My Catalog - Channels tab
    And I can verify exported data from My Catalog - Channels tab

    Examples:
      | option                                                                                                                                                                      |
      | /catalog/channels?country=US                                                                                                                                                |
      | /catalog/channels?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-12964
  @id_dded42723c7beaa9e9a5107de28b13ed3084b98ed794acde82a85424bf6ed04f
  Scenario: [Regression][My Catalog] YOUTUBE CHANNELS - sorting
    When I click on Subscribers column to sort desc on My Catalog - Channels tab
    Then I can see table data is correct on My Catalog - Channels tab
    When I click on Subscribers column to sort asc on My Catalog - Channels tab
    Then I can see table data is correct on My Catalog - Channels tab
    When I click on All TimeViews column to sort desc on My Catalog - Channels tab
    And I click on All TimeViews column to sort asc on My Catalog - Channels tab
    Then I can see table data is correct on My Catalog - Channels tab
    When I click on All TimeEstimated Gross Revenue column to sort desc on My Catalog - Channels tab
    Then I can see table data is correct on My Catalog - Channels tab
    And I click on All TimeEstimated Gross Revenue column to sort asc on My Catalog - Channels tab
    When I click on All TimeAverage View Duration column to sort desc on My Catalog - Channels tab
    Then I can see table data is correct on My Catalog - Channels tab
    And I click on All TimeAverage View Duration column to sort asc on My Catalog - Channels tab

  @IN-12965
  @id_649bd7d206f0a8b222c21407728172db972990ed851f2d7753766392ab0ad812
  Scenario: [Regression][My Catalog] YOUTUBE CHANNELS - filters
    When I can filter by Label on My Catalog - Channels tab
    And I can choose Europe region in market selector
    Then I can see table data is correct on My Catalog - Channels tab
    When I can clear filters on My Catalog - Channels tab
    Then I can see table data is correct on My Catalog - Channels tab

  @IN-12966
  @id_9c7cb474bc9127f62d9b722a4da45aca364f12ddce01f0eb70c7b3e8205ec49a
  Scenario: [Regression][My Catalog] YOUTUBE CHANNELS - customize popup
    And I can see table data is correct on My Catalog - Channels tab
    When I open Customize popup on a grid table
    And I can click on Subscribers column in Customize popup for grid
    Then I can close using cancel Customize popup on a grid table
    And I can see Subscribers column on a grid
    When I open Customize popup on a grid table
    And I can click on Subscribers column in Customize popup for grid
    Then I can close using save Customize popup on a grid table
    And I can't see Subscribers 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-12972
  @id_868d3af26da48dd177c22c52b481664d25225b133c886ac7a6281fda75a27530
  Scenario: [Regression][My Catalog] YOUTUBE CHANNELS - tooltips
    And I can see tooltip for Channel on My Catalog - Channels tab
    And I can see tooltip for Label on My Catalog - Channels tab
