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

  @IN-13762
  @id_16a1fdee1e8f5159f072b21d4fe11875b647e2a8aa9cd87c629668133ac4e931
  Scenario Outline: [Product Page> Playlists] Customize popup verification. - columns <appearances>, export
    Given an orchard employee multiaccount1 for insights
    And I log in
    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 Product 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_f743a73781c23e2cf5beee7f55eb94d18c99bd9f648fec691a02c8789aa3fc1e
  Scenario: [Product Page> Playlists] Customize popup verification. - open/close with buttons
    Given an orchard employee multiaccount1 for insights
    And I log in
    When I visit the insights /product/196626945068/playlists?playlistAppearancesFilter=past&offset=0&limit=10 page
    Then I can open customize popup playlists on Product page
    And I can click save button customize popup playlists on Product page
    Then I can see customize popup closed playlists on Product page
    And I can see default columns for past appearances on playlists on Product page
    Then I can open customize popup playlists on Product page
    And I can click cancel button customize popup playlists on Product page
    Then I can see customize popup closed playlists on Product page
    And I can see default columns for past appearances on playlists on Product page
    Then I can open customize popup playlists on Product page
    And I can click x-close button customize popup playlists on Product page
    Then I can see customize popup closed playlists on Product page
    And I can see default columns for past appearances on playlists on Product page

  @id_5a444e82fe9fe1e0baf776908f51469b9f025a71ff3be846cd65212240811d7c
  Scenario Outline: [Product Page> Playlists] Customize popup verification. - all columns <button>
    Given an orchard employee multiaccount1 for insights
    And I log in
    When I visit the insights /product/196626945068/playlists?playlistAppearancesFilter=<appearances>&offset=0&limit=10 page
    And I can apply all columns on playlists on Product page<button>
    And 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_f33607a258b0f11828ea8c3629fa7398d615ecc86711c578bdaff4a8fc94d406
  Scenario: [Product Page> Playlists] Customize popup verification. - and pagination
    Given an orchard employee multiaccount1 for insights
    And I log in
    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 Product page
    Then I can see all columns for current appearances on playlists on Product page
