@insights_regression
@insights_account
Feature: Account Videos tab table verification

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

  @IN-13189
  @insights_account_videos_table
  @id_2d0eac9a1cb60268a61e3e1e4f1d4d91ae49042c10cf5ad34856cef8f2ca9274
  Scenario: [Regression] Account Videos tab table verification - default view
    Then 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'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
  @insights_account_videos_table
  @id_0c4d1ab4c5348149469809801cf7c25c4665fd6ed0dca14de5f236444b64e7bf
  Scenario: [Regression] Account Videos tab table verification - sorting, links
    Then I can wait and verify table names on video tab Account page
    When I click on All TimeViews column to sort desc Account - Videos tab
    Then I can wait and 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 wait and 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 wait and 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
  @insights_account_videos_table
  @id_237658bfb0525ae53b38ad9fd8ac7f3b3870a2b3c8912fc1211d2796055e1188
  Scenario: [Regression] Account Videos tab table verification - table and export data
    Then I select United States country in Market filter
    And I can verify exported data from Account - Videos tab
    When I select Europe region in Market filter
    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 wait and 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-13392
  @insights_account_videos_table
  @id_711c1622c73d2d71860a89ed3df0d9fc5bb7f2c913210fb37f1a093eb7318051
  Scenario: Account Page YouTube Table verification upon market changing
    Then I can wait and verify table names on video tab Account page

    When I select United States country in Market filter
    Then I can wait and verify table names on video tab Account page

    When I select Europe region in Market filter
    Then I can wait and verify table names on video tab Account page

  @IN-131892
  @id_54bc988690de4c000a37065de4e74b09f312e9a6cd5b3fe2878ff82bb18c58ae
  Scenario: [Regression] Account Videos tab table verification - tooltips
    Then 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
