@insights_regression
@insights_product
@insights_product_playlists_sum_rows
Feature: Product Page Playlists Tab Sum Rows

  Background: Product Page is opened
    Given an orchard employee multiaccount1 for insights
    And I log in

  @id_f681cd133e06c441deae70008ff0220148222f7dcc03b63cbbbb3075140f1d77
  Scenario Outline: [Product Page> Playlists] SUM rows verification. - row <isPresent> present
    When I visit the insights /product/196626945068/playlists?offset=0&limit=1&store=<store> page
    Then I can verify <isPresent> present playlists on Product page

    Examples:
      | store | isPresent |
      | 1     | is        |
      | 286   | is not    |

  @IN-13779
  @id_24500fb97421df86e3f14edb0708fa6f027d43a1c28a875d8390589ac98f76b3
  Scenario: [Product Page> Playlists] SUM rows verification. - export
    When I visit the insights /product/196626945068/playlists?offset=0&limit=1&store=1 page
    Then I can apply all columns on playlists on Product page
    And I can expand sum row playlists on Product page
    Then I can verify exported csv all current columns playlists on Product page
    And I can verify exported csv all columns data playlists on Product page

  @id_f91e543f992392733ad18cb4039847824d427865c6502a0ab93b0ebc1ada697a
  Scenario Outline: [Product Page> Playlists] SUM rows verification. - <appearances> pagination
    When I visit the insights /product/196626945068/playlists?limit=1&store=1&playlistAppearancesFilter=<appearances> page
    Then I can expand sum row playlists on Product page
    And I can open popover in the grid
    And I can select pagination popover 10 count in the grid

    Examples:
      | appearances |
      | past        |
      | current     |
