@insights_regression
@insights_my_catalog
Feature: My Catalog Song

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

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

  @IN-12031
  @id_414ca1bde94b245e5703b5a2ede3c20ce3a94eab057d4f15f0c41973bf66faa8
  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_c22563ec0ebf9b445c18dfdc8a445eeb91d1b531d03054b5deef1e1920881fa9
  Scenario Outline: [Regression][My Catalog][Songs] - list, row and exported data
    Then I visit the insights <option> page
    And I can see song list is correct on Songs tab - My Catalog
    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_045eed8d7e0de7602a470a674ee70bd4309918a34a67c210e3bd1f327cb929b8
  Scenario: [Regression][My Catalog][Songs] - navigate to artist page
    Then I can can open artist page from My Catalog - Song tab

  @IN-12039
  @id_cb1e3f95dcfc7f870252c47bb7c316a7078a044fc2374ab44ced41bd5252931e
  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 - Song tab

  @IN-12057
  @id_ce050539f7cef6f18ac3d23d3a84fabdd26190a5a66f496a69c252c428824c20
  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 Songs tab - My Catalog
    When I can clear all table filters on Songs tab
    When I can filter grid table by Label on the page
    Then I can see song list is correct on Songs tab - My Catalog
    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 - My Catalog
    When I can clear all table filters on Songs tab
    Then I can see song list is correct on Songs tab - My Catalog

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

  @IN-12070
  @id_f5a01b8e91de8ca831058e00f17230179d0ab66b1a8774a965e5d2773c9c51ba
  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 My Catalog - Songs tab
    Then I can see song list is correct on Songs tab - My Catalog
    When I click on 7dStreams Change column to sort asc My Catalog - Songs tab
    Then I can see song list is correct on Songs tab - My Catalog

  @IN-12071
  @id_f0907db43a30f99e75eb7d2faa4915294e2db42c3f659e26960b9ba8b4c34cdf
  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, imprint on My Catalog - Song tab
    And I can see My Catalog page with the songs table
    When I can hover over <option> on My Catalog - Song tab
    Then I can see tooltip for <option> on My Catalog - Songs tab

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