@insights_regression
@insights_song
Feature: Song Playlists Tab Customize Popup

  @IN-13272
  @id_33509b59aec9b1f758ad5aeb019f0c00684fc85b841ab6cdacc34677d391b5fd
  Scenario Outline: [Regression][Song > Playlists tab] Customize popup verification. - columns <appearances>, export
    Given an orchard employee multiaccount1 for insights
    And I log in to Insights silently
    When I visit the insights /song/QM6MZ2214888/playlists?playlistAppearances=<appearances>&limit=10 page
    Then I can verify exported csv default <appearances> columns playlists on Song page
    And I can uncheck all columns on playlists on Song page
    Then I can see obvious columns for <appearances> appearances on playlists on Song page
    And I can verify exported csv obvious <appearances> columns playlists on Song page

    Examples:
      | appearances |
      | past        |
      | current     |

  @id_f92ef7f10047786cf151c24c5dc61374cd53e471be38f551db24188afb7b8f3e
  Scenario Outline: [Regression][Song > Playlists tab] Customize popup verification. - open/close <button>
    Given an orchard employee multiaccount1 for insights
    And I log in to Insights silently
    When I visit the insights /song/QM6MZ2214888/playlists?playlistAppearances=<appearances>&limit=10 page
    Then I can open customize popup playlists on Song page
    And I can click <button> button customize popup playlists on Song page
    Then I can see customize popup closed playlists on Song page
    And Then I can see default columns for <appearances> appearances on playlists on Song page

    Examples:
      | appearances | button  |
      | past        | save    |
      | current     | cancel  |
      | current     | x-close |

  @id_abfb29caf7506e1fd84e178ad51713bbac09912d0d6bfb6d3946d80f7b635f6d
  Scenario Outline: [Regression][Song > Playlists tab] Customize popup verification. - all columns <button>
    Given an orchard employee multiaccount1 for insights
    And I log in to Insights silently
    When I visit the insights /song/QM6MZ2214888/playlists?playlistAppearances=<appearances>&limit=10 page
    And I can apply all columns on playlists on Song page<button>
    And Then I can see <columns> columns for <appearances> appearances on playlists on Song page

    Examples:
      | appearances | button     | columns |
      | current     | and cancel | default |
      | past        | and close  | default |
      | past        |            | all     |

  @id_ec8d90a08b8023d6a59003cd4d3eccf84c5f60c5ff4806c8ceb310eeae922052
  Scenario: [Regression][Song > Playlists tab] Customize popup verification. - and pagination
    Given an orchard employee multiaccount1 for insights
    And I log in to Insights silently
    When I visit the insights /song/QM6MZ2214888/playlists?offset=0&limit=10 page
    And I can click on next arrow popover in the grid
    And I can apply all columns on playlists on Song page
    Then I can see all columns for current appearances on playlists on Song page
