@insights_regression
@insights_amplitude
Feature: Product Page Playlists Tab Amplitude Events

  @IN-13772
  @id_ffc9a5059b6add191f0aa47e984970aa446a5734b1781fe85a8f64af6b65a8ac
  Scenario: [Product Page> Playlists] Amplitude events verification. - store, search, curator, country
    Given an orchard employee multiaccount1 for insights
    And I log in to Insights silently
    When I visit the insights /product/196626945068/playlists?playlistAppearancesFilter=current&offset=0&limit=10 page
    And I can wait for View Product page in amplitudeEvent
    And I can verify "tab":"playlists" in amplitude events
    Then I can change to Spotify in store playlists on Song page
    And I can wait for Inner Tab clicked in amplitudeEvent
    Then I search for sDs item on the page
    And I can wait for Filter Search in amplitudeEvent
    Then I can change to Albania in curator playlists on Song page
    And I can wait for Country Filter in amplitudeEvent
    Then I can change to Spain in country playlists on Song page
    And I can wait for Market Filter in amplitudeEvent
    And I can verify "brand":"orchard" in amplitude events
    And I can verify "category":"Global Filters" in amplitude events
    And I can verify "name":"product" in amplitude events
    And I can verify "page":"product" in amplitude events

  @IN-13772
  @id_e38df4c894709255c485786673917962124529988ec562392a1e5e2785f45bad
  Scenario: [Product Page> Playlists] Amplitude events verification. - pagination, next, customize, type
    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
    And I can verify pagination popover for 1 page and 10 count in the grid
    Then I can select pagination popover 20 count in the grid
    And I can wait for Rows per page click in amplitudeEvent
    Then I can click on next arrow popover in the grid
    And I can wait for Pagination button click in amplitudeEvent
    Then I can check all columns on playlists on Song page
    And I can wait for Engage Customize columns selection in amplitudeEvent
    Then I can select Select all type
    And I can wait for Type multi-select filter in amplitudeEvent
    And I can verify "brand":"orchard" in amplitude events
    And I can verify "category":"Engagement" in amplitude events
    And I can verify "name":"product" in amplitude events
    And I can verify "page":"product" in amplitude events

  @IN-13772
  @id_6dd97e77f33aeafcd645495d22e12533f4049f317b6cb1dedbd2b5e769ca96ab
  Scenario: [Product Page> Playlists] Amplitude events verification. - sorting, export, details popup, sum row
    Given an orchard employee multiaccount1 for insights
    And I log in to Insights silently
    When I visit the insights /product/193483317984/playlists?offset=0&store=1&limit=10 page
    And I click on Playlist column title
    And I can wait for Table sorted in amplitudeEvent
    Then I can click export playlists on Song page
    And I can wait for Click Export button in amplitudeEvent
    And I can switch to Past toggle
    Then I can wait for Playlist Category Filter in amplitudeEvent
    And I can verify "value":"past" in amplitude events
    And I can verify "brand":"orchard" in amplitude events
    And I can verify "category":"Engagement" in amplitude events
    And I can verify "name":"product" in amplitude events
    And I can verify "page":"product" in amplitude events
    And I can open details popup playlists on Song page
    Then I can wait for Details pop-up clicked in amplitudeEvent
    And I can verify "brand":"orchard" in amplitude events
    And I can verify "category":"Engagement" in amplitude events
    And I can verify "name":"product" in amplitude events
    And I can verify "page":"product" in amplitude events
