@insights_regression
@insights_product
Feature: Product Page Songs Tab verification

  Background: Product Page Songs Tab is opened
    Given an orchard employee insightsemployee for insights
    And I log in to Insights silently

  @IN-12461
  @id_6c2646e8a990f93c55947b2d306153128ca28788c7516ed49de71804e57dd3fe
  Scenario: Product Page Songs Tab - Sortable columns and list
    When I visit the insights product/196626945068/songs?offset=0&limit=2 page
    Then I can verify tracks list on Songs tab on the product page
    And I can verify tracks data and csv on Songs tab on the product page
    When I click on Track name column title
    Then I can verify tracks list on Songs tab on the product page
    When I click on Track name column title
    Then I can verify tracks list on Songs tab on the product page
    When I click on 1dStreams column title
    Then I can verify tracks list on Songs tab on the product page
    When I click on 1dStreams column title
    Then I can verify tracks list on Songs tab on the product page
    When I click on All TimeStreams column title
    Then I can verify tracks list on Songs tab on the product page
    When I click on All TimeStreams column title
    Then I can verify tracks list on Songs tab on the product page
    When I visit the insights product/196626945068/songs?offset=0&limit=2&country=US page
    Then I can verify tracks list on Songs tab on the product page
    And I can click smart products toggle on My Catalog - Products tab
    Then I can verify smart tracks list on Songs tab on the product page

  @IN-124611
  @id_6f320a2de9ecc049aa43b20bbd3dac468c3a5682d7695c2050f094322c3b177b
  Scenario: Product Page Songs Tab - Customize popup open/close
    When I visit the insights product/196626945068/songs?offset=0&limit=1 page
    Then I can verify table columns on the page: Track name|Artist|Track #|1dStreams|1dChange|7dStreams|7dChange|28dStreams|28dChange|All TimeStreams
    And I open Customize popup on a grid table
    And I can click on (1 Day) Streams column in Customize popup for grid
    Then I can close using cancel Customize popup on a grid table
    And I can see (1 Day) Streams column on a grid
    When I open Customize popup on a grid table
    And I can click on (1 Day) Streams column in Customize popup for grid
    Then I can close using save Customize popup on a grid table
    And I can't see (1 Day) Streams 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
    And I can see tooltip for Track on Product - Videos tab
    And I can see tooltip for Artist on Product - Videos tab
