@insights_regression
@insights_artist
@IN-12546
Feature: Artist Song Tab

  Background: [Regression][Artist][Songs]
    Given an orchard employee insightsemployee for insights
    And I log in to Insights silently
    And I visit the insights artist/e49ea9f9-0a74-4623-b3c6-ff819c7c0a4d/ page
    And I can navigate to the Songs tab on the page

  @id_f0c7a4b438a8e613bf330ea5c25965e086f6960712d73765c130558c1f9273b1
  Scenario: [Regression][Artist][Songs] table columns and data
    Then I can verify table columns on the page: Song|Release Date|7dStreams|7dStreams Change|7dActive Streams Change
    And I can see list and row data is correct on Songs tab - Artist page

  @id_a9509602640fee6e2395cf7d8be8398338f777dc910f1d87191fe598dcbf3f1f
  Scenario: [Regression][Artist][Songs] export
    Then I can verify exported data from Artist - Songs tab

  @id_d10fcafec0fca1b59b72d65d6d9d965355fb3f3544a6f0c68946811124a08333
  Scenario: [Regression][Artist][Songs] - table sorting
    When I click on Release Date column to sort desc Artist - Songs tab
    Then I can see list is correct on Songs tab - Artist page no wait
    When I click on Release Date column to sort asc Artist - Songs tab
    Then I can see list is correct on Songs tab - Artist page no wait

    When I click on 7dStreams Change column to sort asc Artist - Songs tab
    Then I can see list is correct on Songs tab - Artist page no wait
    When I click on 7dStreams Change column to sort desc Artist - Songs tab
    Then I can see list is correct on Songs tab - Artist page no wait

  @id_8f54169d92ef4dc38e2240585dd5b0b6ba33a050f699e735531c1967ca93c24a
  Scenario: [Regression][Artist][Songs] - hover over 7daysActiveStreamsChange
    When I can hover over 7daysActiveStreamsChange on Songs tab - Artist page
    Then I can see tooltip for 7daysActiveStreamsChange on Songs tab - Artist page

  @id_a8ae69cd87974121d1a44af366b41bc4394534791f8fa9550a67ddc0fc550a36
  Scenario: [Regression][Artist][Songs] - customize popup
    When I open Customize popup on a grid table
    And I can click on 1 Day, Streams column in Customize popup for grid
    Then I can close using cancel Customize popup on a grid table
    And I can't see 1 Day, Streams column on a grid
    When I open Customize popup on a grid table
    And I can click on 1 Day, Streams column in Customize popup for grid
    And I can click on 28 Days, Streams column in Customize popup for grid
    Then I can close using save Customize popup on a grid table
    And I can see 1 Day, Streams column on a grid
    And I can see 28 Days, Streams column on a grid
    When I open Customize popup on a grid table
    Then I can close using x-close Customize popup on a grid table

  @id_be182d6d01ab36c87143e5bab375edd4d48976f3832ee1a0bb5cd8910c0ecc06
  Scenario: [Regression][Artist][Songs] - navigate to song page and data consistency
    Then I can can open song page from Artist - Song tab
    And I can verify data on Song page is the same as on Artist - Song tab

  @id_0c8494bff10a691ba5a971083e94b5d675287a2fb9d049d2f2a3c03f88b9e0a7
  Scenario: [Regression][Artist][Songs] - navigate to artist page
    Then I can can open artist page from Artist - Song tab
