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

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

  @id_552ba91393178d33350018703e3f030c21ff20396eb80a8d69c4b94d1f8ff160
  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 Song page

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

  @IN-13779
  @id_a6c7ae00df325c820206c1a45ba891f7bc4c1ef0e97937e072559cd052eab3c6
  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 Song page
    And I can expand sum row playlists on Song 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_4f3fcba236c79e148a64d14af31be077f44544a9826d716936d01d3f497300b7
  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 Song page
    And I can open popover in the grid
    And I can select pagination popover 10 count in the grid

    Examples:
      | appearances |
      | past        |
      | current     |
