@insights_regression
@insights_artist
@insights_artist_playlists
Feature: Artist Playlists Tab Sum Rows

  Background: Login to Insights
    Given an orchard employee multiaccount1 for insights
    And I log in

  @id_8dbaf9517e39f29bab0b6a2c0aee36d0a26472f6fcd6cc4fb370976699238cd3
  Scenario Outline: [Artist> Playlists tab] SUM rows verification. - store <isPresent> present
    When I visit the insights /artist/e49ea9f9-0a74-4623-b3c6-ff819c7c0a4d/playlists?store=<store>&limit=10 page
    Then I can verify <isPresent> present playlists on Artist page

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

  @IN-14548
  @id_3b08c407538f19a0367d0992eff27a6cade52d91f1b3f8b3c7f5983493df1f9a
  Scenario: [Artist> Playlists tab] SUM rows verification. - export
    When I visit the insights /artist/e49ea9f9-0a74-4623-b3c6-ff819c7c0a4d/playlists?store=1&limit=10 page
    Then I can expand sum row playlists on Artist page
    And I can check all columns on playlists on Artist page
    And I can verify exported csv all current columns playlists on Artist page
    And I can verify exported csv all columns data playlists on Artist page

  @id_55d552f8b094ec087285d148b5dc483eb96792716eb22280db271383926096af
  Scenario: [Artist> Playlists tab] SUM rows verification. - pagination
    When I visit the insights /artist/e49ea9f9-0a74-4623-b3c6-ff819c7c0a4d/playlists?store=1&limit=20 page
    Then I can expand sum row playlists on Artist page
    And I can open popover in the grid
    And I can select pagination popover 10 count in the grid
