@insights_regression
@insights_song
@insights_song_playlists
Feature: Song Playlists Tab Sum Rows

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

  @id_f8a287d5f8ab7967a00c8c448ce50e8be7b8ee61989b9defd7abcea520228b6f
  Scenario Outline: [Song> Playlists tab] SUM rows verification. - store <isPresent> present
    When I visit the insights /song/QM6MZ2214888/playlists?store=<store>&limit=10 page
    Then I can verify <isPresent> present playlists on Song page

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

  @IN-13321
  @id_77f4f407f38b348e73424d1341a4a2b99509cc8038826b83c467a2c4fa8cbca6
  Scenario: [Song> Playlists tab] SUM rows verification. - export
    When I visit the insights /song/QM6MZ2214888/playlists?store=1&limit=10 page
    Then I can expand sum row playlists on Song page
    And I can check all columns on playlists on Song page
    And I can verify exported csv all current columns playlists on Song page
    And I can verify exported csv all columns data playlists on Song page

  @id_170ef8ccc0134acad4deb02ca512cfab96df117ffb83db4abc13c68d80522648
  Scenario: [Song> Playlists tab] SUM rows verification. - pagination
    When I visit the insights /song/QM6MZ2214888/playlists?store=1&limit=20 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
