@insights_regression
@insights_my_catalog
Feature: My Catalog Channels Tab

  Background: Account Page is opened in default state
    Given an orchard employee insightsemployee for insights
    And I log in to Insights silently
    Then I visit the insights catalog/channels?offset=0&limit=10 page

  @IN-12929
  @id_f75f001392029cb5f0f509f3031f162a4b60d61b6ce70f5e1a8622a54de12270
  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 Channels tab - My Catalog
    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_667f82c30c084b09671bc1b799383dddff4551df7d3d59764fe0f3d25ec14056
  Scenario Outline: [Regression][My Catalog] YOUTUBE CHANNELS. - list, row  and export data
    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_6341576c3f47d71c11dbe5fe2dd14b60c65a3d87dc8746e2f07c3b35b5bba5a4
  Scenario: [Regression][My Catalog] YOUTUBE CHANNELS. - sorting
    When I click on Subscribers column to sort desc 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 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 My Catalog - Channels tab
    And I click on All TimeViews column to sort asc 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 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 My Catalog - Channels tab

    When I click on All TimeAverage View Duration column to sort desc 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 My Catalog - Channels tab

  @IN-12965
  @id_d043d3644dc06d0c44cea37647f249831fc0b7a83f95fa6a1b69bc734879da05
  Scenario: [Regression][My Catalog] YOUTUBE CHANNELS. - filters
    When I can filter by Label from 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 from on My Catalog - Channels tab
    Then I can see table data is correct on My Catalog - Channels tab

  @IN-12966
  @id_8bf9f75c827fc37fd6f6b7fef8cd9da850fdbfb5feac9f22a0e621afa8e6c9a9
  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_28cfb6e4f9880a64e043cd1c1b01de531372e3bd8287acc0c1143a5174fd572f
  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
