@insights_regression
@insights_account
Feature: Account Videos tab PoT table verification

  Background: [Regression] Account Videos tab login
    Given an orchard employee insightsemployee for insights
    And I log in to Insights silently
    And I visit the insights account/26760/videos page

  @IN-13189
  @id_a2e3e3e7ccfcab8ad252479b9f49b457db0634b94d2fff583f7a8a4872c3362b
  Scenario: [Regression] Account Videos tab table verification - default view
    Then I can scroll to YouTube Videos on the Page
    And I can verify links on Videos tab - My Catalog
    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
    And I can verify table names on video tab Account page
    And I can't see (7 Days) Views column on a grid
    And I can't see (28 Days) Views 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 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-13189
  @id_070bc7bc0dc90d4ca862f01ba0ebf8bec18723a2dac46fc253eb1a4b95632e88
  Scenario: [Regression] Account Videos tab table verification - sorting, links
    Then I can scroll to YouTube Videos on the Page
    And I can verify table names on video tab Account page
    When I click on All TimeViews column to sort desc Account - Videos tab
    Then I can verify table names on video tab Account page
    When I click on All TimeEstimated Gross Revenue column to sort desc Account - Videos tab
    Then I can verify table names on video tab Account page
    When I click on All TimeAverage View Duration column to sort desc Account - Videos tab
    Then I can verify table names on video tab Account page
    And I can open video page from Videos tab
    And I visit the insights account/26760/videos page
    And I can open channel page from Videos tab

  @IN-131891
  @id_74a069749b4917440389db4dace8cad57fcc5cb057530a935ad9ccfe30a16667
  Scenario: [Regression] Account Videos tab table verification - table and export data
    Then I can scroll to YouTube Videos on the Page
    And I can choose United States market in market selector
    Then I can verify table names on video tab Account page
    And I can see table data is correct on Account - Videos tab
    And I can verify exported data from Account - Videos tab
    Then I can choose Europe region in market selector
    And I open Customize popup on a grid table
    And I can click on (7 Days) Views column in Customize popup for grid
    And I can click on (28 Days) Views column in Customize popup for grid
    Then I can close using save Customize popup on a grid table
    And I can verify table names on video tab Account page
    And I can see table data is correct on Account - Videos tab
    And I can verify exported data from Account - Videos tab

  @IN-131892
  @id_71fd9b986b32822389c0f24fb735e919b8b7640cf76e06d6e9c7d503efaaf86a
  Scenario: [Regression] Account Videos tab table verification - tooltips
    Then I can scroll to YouTube Videos on the Page
    And I can see tooltip for Video on Account - Videos tab
    And I can see tooltip for Channel on Account - Videos tab
    And I can see tooltip for Label on Account - Videos tab
