@insights_regression
@insights_my_catalog
@insights_my_catalog_songs
Feature: My Catalog Songs Tab

  Background: Account Page is opened in default state
    Given an orchard employee multiaccount1 for insights
    And I log in
    And I visit the insights /catalog/songs?offset=0&limit=2 page

  @IN-12030
  @id_2b8f45f165c9c66fcd794369b64f8d0dc3f2d8f5bf6e0ab95658a545600f08a7
  Scenario: [Regression][My Catalog][Songs] - default view
    And I can see "multiple" label user filters
    And I can see table links on My Catalog - Songs tab

  @IN-12031
  @id_cf834b02fac69a27e27df9708e365d3fd695dbccbc09c53b5a5213464fbec273
  Scenario: [Regression][My Catalog][Songs] - table columns
    Then I can verify table columns on the page: #|Song|Release Date|7dStreams|7dStreams Change|7dActive Streams Change|7dCreations Change

  @IN-12028
  @IN-11945
  @id_ea16fbba6541b145c0050e4fdf38c596cf7b06235fd9263f1e2e4dd44f760311
  Scenario Outline: [Regression][My Catalog][Songs] - list, row and exported data <option>
    Then I visit the insights <option> page
    And I can see song list is correct on My Catalog - Songs tab
    And I can see table data is correct on My Catalog - Songs tab
    Then I can verify exported data from My Catalog - Songs tab

    Examples:
      | option                                                                                                                                                                                    |
      | /catalog/songs?limit=2                                                                                                                                                                    |
      | /catalog/songs?country=US&offset=0&limit=2                                                                                                                                                |
      | /catalog/songs?country=UY&country=PE&country=FK&country=EC&country=PY&country=CL&country=SR&country=BR&country=CO&country=BO&country=GF&country=GY&country=VE&country=AR&offset=0&limit=2 |

  @IN-12039
  @id_d2cdc8a6997cd4e7d718818d831e5ffa017aec082d9c1141dd4fa85f551d4e14
  Scenario: [Regression][My Catalog][Songs] - navigate to artist page
    Then I can open artist page from Songs tab

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

  @IN-12057
  @id_f68b2561279462d96c11a30c3041a8185bf57fce7e0aa2c83a5e3ee6f0cd3631
  Scenario: [Regression][My Catalog][Songs] - filters
    When I can filter grid table by Artist on the page
    Then I can see song list is correct on My Catalog - Songs tab
    When I can clear filters on My Catalog - Songs tab
    When I can filter grid table by Label on the page
    Then I can see song list is correct on My Catalog - Songs tab
    When I can clear filters on My Catalog - Songs tab
    When I can filter grid table by Store on the page
    Then I can see song list is correct on My Catalog - Songs tab
    When I can clear filters on My Catalog - Songs tab
    Then I can see song list is correct on My Catalog - Songs tab

  @IN-12063
  @id_987bcbde5c4a434dd687ab19e1c253ceea2dd04cc214a60d42b34e48822f355d
  Scenario: [Regression][My Catalog][Songs] - sortable columns
    When I click on Release Date column to sort desc on My Catalog - Songs tab
    Then I can see song list is correct on My Catalog - Songs tab
    When I click on Release Date column to sort asc on My Catalog - Songs tab
    Then I can see song list is correct on My Catalog - Songs tab
    When I click on 7dStreams column to sort desc on My Catalog - Songs tab
    Then I can see song list is correct on My Catalog - Songs tab
    When I click on 7dStreams Change column to sort desc on My Catalog - Songs tab
    And I click on 7dStreams Change column to sort asc on My Catalog - Songs tab
    Then I can see song list is correct on My Catalog - Songs tab
    When I click on 7dActive Streams Change column to sort desc on My Catalog - Songs tab
    Then I can see song list is correct on My Catalog - Songs tab

  @IN-12070
  @id_6bfdf7e4c5b8a17bdd0353e4affe8955f235d7740e7831d751bc50ac4a606c99
  Scenario: [Regression][My Catalog][Songs] - customize popup open/close
    When I open Customize popup on a grid table
    Then I can close using save Customize popup on a grid table
    When I open Customize popup on a grid table
    Then I can close using cancel Customize popup on a grid table
    When I open Customize popup on a grid table
    Then I can close using x-close Customize popup on a grid table
    When I click on 7dStreams Change column to sort desc on My Catalog - Songs tab
    Then I can see song list is correct on My Catalog - Songs tab
    When I click on 7dStreams Change column to sort asc on My Catalog - Songs tab
    Then I can see song list is correct on My Catalog - Songs tab

  @IN-12071
  @id_40e0db888fb8915472a7183e13b1c93c8ccfa56d01ab1053801b7bb3146deb02
  Scenario Outline: [Regression][My Catalog][Songs] - hover over <option>
    And I can navigate to My Catalog
    And I can navigate to the Products tab on the page
    And I can navigate to the Songs tab on the page
    Then I can click on isrc and imprint on My Catalog - Songs tab
    And I can see My Catalog page with the songs table
    When I can hover over <option> on My Catalog - Songs tab
    Then I can see tooltip for <option> on My Catalog - Songs tab

    Examples:
      | option            |
      | song              |
      | imprint           |
      | 7daysActiveChange |
