@insights_regression
@insights_song
@insights_song_playlists
Feature: Song Playlists Tab Customize Popup

  @IN-13272
  @id_a4803c79e162770f5b2cb4e967d40b12904db55207523be29a44ff10f9ef61ae
  Scenario Outline: [Regression][Song > Playlists tab] Customize popup verification. - columns <appearances>, export
    Given an orchard employee multiaccount1 for insights
    And I log in
    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_0dec3b0b8b3363920b76a39ec492c2a33191a81808b266ce190e6d7d1b70587a
  Scenario Outline: [Regression][Song > Playlists tab] Customize popup verification. - open/close <button>
    Given an orchard employee multiaccount1 for insights
    And I log in
    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 I can see default columns for <appearances> appearances on playlists on Song page

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

  @id_a375c5eddf796ee90e15c6c1dfdddcf5f949f744841eeb4876ecfcd3080df4f8
  Scenario Outline: [Regression][Song > Playlists tab] Customize popup verification. - all columns <button>
    Given an orchard employee multiaccount1 for insights
    And I log in
    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>
    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_a4724351841ae86909ab5809e39f6d5b9731d92903d1e222c98ac766deb2688d
  Scenario: [Regression][Song > Playlists tab] Customize popup verification. - and pagination
    Given an orchard employee multiaccount1 for insights
    And I log in
    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
