@insights_regression
@insights_product
Feature: Product Page Playlists Tab Pagination verification

  @id_753272f7e1dbf0bb655a88cc7eb75322befbadfca97123bc7a1118048a5c5a4f
  Scenario Outline: [Product Page> Playlists] Pagination verification. - <appearances> pagination and list
    Given an orchard employee multiaccount1 for insights
    And I log in
    When I visit the insights /product/196626945068/playlists?playlistAppearances=<appearances><store> page
    And I can select Select all type
    Then I see a page with a table with 200 rows
    And I can verify pagination hover 1 in the grid
    And I can verify pagination popover for 1 page and 200 count in the grid
    And I can select pagination popover <count> count in the grid

    Examples:
      | appearances | count | store      |
      | past        | 50    | &store=286 |
      | current     | 10    |            |

  @IN-13761
  @id_8852aa37c827a7c5ce9b712d2f25511eeabf1e2d25742a4df21cae6019d84c8a
  Scenario: [Product Page> Playlists] Pagination verification. - switch page
    Given an orchard employee multiaccount1 for insights
    And I log in
    When I visit the insights /product/196626945068/playlists?offset=0&limit=10&store=286 page
    And I can open popover in the grid
    And I can select pagination popover Last page count in the grid
    Then I can verify playlists list on Playlists tab on the product page
    And I can open popover in the grid
    And I can select pagination popover First page count in the grid
    Then I can verify playlists list on Playlists tab on the product page
    And I can click on next arrow popover in the grid
    Then I can verify playlists list on Playlists tab on the product page
