@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

  @IN-12461
  @insights_product_songs_tab
  @id_84c27b42f4bd81d200511a32d0b6e92549e377a4ef07d20aa641676da0d69147
  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 on Songs tab
    Then I can verify tracks list on Songs tab on the product page
    When I click on Track name column title on Songs tab
    Then I can verify tracks list on Songs tab on the product page
    When I click on 1dStreams column title on Songs tab
    Then I can verify tracks list on Songs tab on the product page
    When I click on 1dStreams column title on Songs tab
    Then I can verify tracks list on Songs tab on the product page
    When I click on All TimeStreams column title on Songs tab
    Then I can verify tracks list on Songs tab on the product page
    When I click on All TimeStreams column title on Songs tab
    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 Songs tab on the product page
    Then I can verify smart tracks list on Songs tab on the product page

  @IN-12461
  @id_a884cb2a833ef666be51a10b7d831d0b997a927c146f992a3d135bb0987f4527
  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 Songs tab: 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 1dStreams 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 1dStreams 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 - Songs tab
    And I can see tooltip for Artist on Product - Songs tab
