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

  Background: [Product Page> Playlists] Pagination verification.
    Given an orchard employee multiaccount1 for insights
    And I log in to Insights silently

  @id_237f313920e62f80ba27c00a53a95a26f7019b1a367bf80cbd9fbe3e1e58e9dc
  Scenario Outline: [Product Page> Playlists] Pagination verification. - <appearances> pagination and list
    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    | &store1 |
      | current     | 10    |         |

  @IN-13761
  @id_605ecc53888dd0f0be7cbcf11ea7cc7517c09fd48c2bf23b8703e640affead27
  Scenario: [Product Page> Playlists] Pagination verification. - switch page
    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
