@insights_regression
@insights_product
Feature: [Product> Playlists> Details Popup] Structure and data.

  Background: Product Page Playlist tab is opened in default state
    Given an orchard employee insightsemployee for insights
    And I log in

  @IN-13782
  @insights_product_playlists_popup_structure
  @id_f25834bf6833d5677d3a281ca4e092cc6b73fa6242e65a1fe03a11d898273ede
  Scenario: [Product> Playlists> Details Popup] Structure and data - current
    When I visit the insights /product/886443546264/playlists?offset=0&limit=10 page
    And I can open popup from table view on Playlist tab on Product page
    Then I can verify header metadata on Playlist Popup Product page
    And I can verify header column data on Playlist Popup Product page
    And I can verify Completion tooltip on Playlist Popup
    And I can verify sections streams metrics on Playlist Popup
    And I can verify sections positions and days metrics on Playlist Popup
    When I can select Past 7 Days period on Playlist popup
    And I can select United States market popup on Product page
    Then I can verify header metadata on Playlist Popup Product page
    And I can verify sections streams metrics on Playlist Popup
    And I can close Playlist Popup

  @IN-13782
  @insights_product_playlists_popup_structure
  @id_34eda6b2620d4bf4afa3959f5db7528bb4a2871581009b3e4e3651f2e346e5f5
  Scenario: [Product> Playlists> Details Popup] Structure and data - past
    When I visit the insights /product/886443546264/playlists?offset=0&limit=50&playlistAppearancesFilter=past page
    And I can open popup from table view on Playlist tab on Product page
    Then I can verify header metadata on Playlist Popup Product page
    And I can verify header column data on Playlist Popup Product page
    Then I can verify sections streams metrics on Playlist Popup
