@insights_regression
@insights_amplitude
Feature: Song PlaylistsTab Amplitude Events

  @IN-13288
  @id_55201f37a971358f879c561a2af2383b7d504de76abe2dc69551003b6e03d4fb
  Scenario: [Song > Playlists tab] 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 /song/QM6MZ2214888/playlists?offset=0&limit=10 page
    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

  @IN-13288
  @id_e59dbe992c5e199f95a29d8709ed593228f9f19e457c9458c7332ddc4f7a8ea0
  Scenario: [Song > Playlists tab] 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 /song/QM6MZ2214888/playlists?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

  @IN-13288
  @id_74f1bc96bf997d392809b3d4ba183f6a8d08f1c29a1ba28dcaec6e5a483d44ac
  Scenario: [Song > Playlists tab] 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 /song/QM6MZ2214888/playlists?limit=10&store=1&orderDir=asc&orderBy=playlist_name&playlistAppearances=past page
    Then 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
    Then I can expand sum row playlists on Song page
    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":"song" in amplitude events
    And I can verify "page":"song" in amplitude events
    And I can wait for Summary rows clicked in amplitudeEvent
    And I can verify "path":"/song/QM6MZ2214888/playlists" in amplitude events
    And I can verify "songISRC":"QM6MZ2214888" in amplitude events
    And I can verify "tab":"playlists" in amplitude events
