@insights_regression
@insights_account
@IN-12547
Feature: Account Songs Tab

  Background: [Regression][Account][Songs]
    Given an orchard employee insightsemployee for insights
    And I log in to Insights silently
    And I visit the insights account/26760/ page
    And I can navigate to the Songs tab on the page

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

  @id_5871d8439a465362bf943c7e493697fad403fcfedff5e0e7279764b5fb98fc04
  Scenario: [Regression][Account][Songs] - filters
    When I can filter grid table by Artist on the page
    Then I can see song list is correct on Songs tab - Account
    When I can clear all table filters on Songs tab
    When I can filter grid table by Store on the page
    Then I can see song list is correct on Songs tab - Account
    When I can clear all table filters on Songs tab
    Then I can see song list is correct on Songs tab - Account

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

  @id_1911b05f6c7e46d35ed511c78ea18a99cd5340b32509fa528b91c20f4c18719c
  Scenario: [Regression][Account][Songs] - table sorting
    When I click on 7dStreams Change column to sort desc Account - Songs tab
    Then I can see list is correct on Songs tab - Account page no wait
    When I click on 7dStreams Change column to sort asc Account - Songs tab
    Then I can see list is correct on Songs tab - Account page no wait

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

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

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

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

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