@insights_regression
@insights_product
Feature: Product Page Playlists Tab Customize Popup

  @IN-13762
  @id_c803b22c3b39fdd8911a4c69da940c10087730b4cd222b40c4977a6f7b8561b6
  Scenario Outline: [Product Page> Playlists] 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 /product/196626945068/playlists?playlistAppearancesFilter=<appearances>&offset=0&limit=10 page
    Then I can verify exported csv default <appearances> columns playlists on Product page
    And I can uncheck all columns on playlists on Song page
    Then I can see obvious columns for <appearances> appearances on playlists on Product page
    And I can verify exported csv obvious <appearances> columns playlists on Product page

    Examples:
      | appearances |
      | past        |
      | current     |

  @id_792d7cf10876f5da7d6f1e575d74d0a8a6a5c8cede5e1e35856d34ecee7599df
  Scenario: [Product Page> Playlists] Customize popup verification. - open/close with buttons
    Given an orchard employee multiaccount1 for insights
    And I log in to Insights silently
    When I visit the insights /product/196626945068/playlists?playlistAppearancesFilter=past&offset=0&limit=10 page
    Then I can open customize popup playlists on Song page
    And I can click save 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 past appearances on playlists on Product page
    Then I can open customize popup playlists on Song page
    And I can click cancel 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 past appearances on playlists on Product page
    Then I can open customize popup playlists on Song page
    And I can click x-close 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 past appearances on playlists on Product page

  @id_adeb18a16e15a933a7d45911fa35a6ed307bbae7979c815f447cc0d25e2b29a1
  Scenario Outline: [Product Page> Playlists] 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 /product/196626945068/playlists?playlistAppearancesFilter=<appearances>&offset=0&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 Product page

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

  @id_46a84fbd92363000d41d939c036d2f5e7a09c51c96e30db40d357c4e4b8ecf98
  Scenario: [Product Page> Playlists] Customize popup verification. - and pagination
    Given an orchard employee multiaccount1 for insights
    And I log in to Insights silently
    When I visit the insights product/196626945068/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 Product page
