@insights_regression
@insights_my_catalog
Feature: My Catalog Products Tab

  Background: Account Page is opened in default state
    Given an orchard employee multiaccount1 for insights
    And I log in to Insights silently

  @IN-12716
  @id_823581c246de93f20c4593cb8fc9491f190c3b6799c06d0bb0191c09f8f02623
  Scenario: [Regression][My Catalog][Products] - links and columns
    Then I visit the insights /catalog/products?offset=0&limit=2 page
    And I can see My Catalog page with the products table
    And I can verify links on Products tab - My Catalog
    Then I can verify table columns on the page: #|Product|Artist|Imprint|Account|Release Date|1dStreams|1dChange|7dStreams|7dChange|28dStreams|28dChange|All TimeStreams

  @IN-12717
  @id_64b83b89e5d23da314c937b8982c6f5311a78af3feb67c170c7db82efdeb3b56
  Scenario Outline: [Regression][My Catalog][Products] - list of products
    When I visit the insights <option> page
    And I can see list is correct on My Catalog - Products tab no wait

    Examples:
      | option                                                                                                                                                                                       |
      | /catalog/products?offset=0&limit=2                                                                                                                                                           |
      | /catalog/products?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-12728
  @id_6fc13b6a6307c5662c85817c3b61f7a940cfefbf4bb992ce5ac98ab7bd51ddfa
  Scenario: [Regression][My Catalog][Products] - sortable columns
    Then I visit the insights /catalog/products?offset=0&limit=10 page
    When I click on Release Date column to sort desc My Catalog - Products tab
    Then I can see list is correct on My Catalog - Products tab no wait
    When I click on Release Date column to sort asc My Catalog - Products tab
    Then I can see list is correct on My Catalog - Products tab no wait

    When I click on 1dStreams column to sort desc My Catalog - Products tab
    And I click on 1dStreams column to sort asc My Catalog - Products tab
    Then I can see list is correct on My Catalog - Products tab no wait

    When I click on 1dChange column to sort desc My Catalog - Products tab
    And I click on 1dChange column to sort asc My Catalog - Products tab
    Then I can see list is correct on My Catalog - Products tab no wait

    When I click on 7dStreams column to sort desc My Catalog - Products tab
    Then I can see list is correct on My Catalog - Products tab no wait
    And I click on 7dStreams column to sort asc My Catalog - Products tab

    When I click on 7dChange column to sort desc My Catalog - Products tab
    And I click on 7dChange column to sort asc My Catalog - Products tab
    Then I can see list is correct on My Catalog - Products tab no wait

    When I click on 28dStreams column to sort desc My Catalog - Products tab
    And I click on 28dStreams column to sort asc My Catalog - Products tab
    Then I can see list is correct on My Catalog - Products tab no wait

    When I click on 28dChange column to sort desc My Catalog - Products tab
    Then I can see list is correct on My Catalog - Products tab no wait
    And I click on 28dChange column to sort asc My Catalog - Products tab

    When I click on All TimeStreams column to sort desc My Catalog - Products tab
    Then I can see list is correct on My Catalog - Products tab no wait
    And I click on All TimeStreams column to sort asc My Catalog - Products tab

  @IN-12733
  @id_8d456579c43281924af1cc9533029bd7f16bfb7804b8a3f1a4e5ce632a7d6359
  Scenario: [Regression][My Catalog][Products] - filters
    Then I visit the insights /catalog/products?offset=0&limit=2 page
    When I can filter by Artist from on My Catalog - Products tab
    Then I can see list is correct on My Catalog - Products tab no wait
    When I can clear filters from on My Catalog - Products tab
    When I can filter by Label from on My Catalog - Products tab
    Then I can see list is correct on My Catalog - Products tab no wait
    When I can clear filters from on My Catalog - Products tab
    Then I can see list is correct on My Catalog - Products tab no wait

  @IN-12737
  @id_99298a7bb402c87055280de111f56bddde1883fc5a029e03fb01c3ad0a8c305f
  Scenario Outline: [Regression][My Catalog][Products] - tooltips
    Then I visit the insights /catalog/products?offset=0&limit=2 page
    And I can see tooltip for <option> on My Catalog - Products tab

    Examples:
      | option  |
      | Account |
      | Artist  |
      | Product |
      | Imprint |

  @IN-12746
  @IN-12719
  @id_3d814641f8bc86a319dda27bfe94be2040c60df23c2526230ee4b040eabe2da2
  Scenario: [Regression][My Catalog][Products] - product row and customize popup
    Then I visit the insights /catalog/products?offset=0&limit=2 page
    And I can see table data is correct on My Catalog - Products tab
    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 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
    Then I can close using save 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
    Then I can close using x-close Customize popup on a grid table

  @IN-12738
  @id_4defb9c5ae98db4356fb945acaf93c2047d77da926dcacc4a30b4f8a92a3994b
  Scenario: [Regression][My Catalog][Products] - export
    Then I visit the insights /catalog/products?offset=0&limit=2 page
    And I can verify exported data from My Catalog - Products tab

  @IN-12754
  @id_a9fde22d84223afc603260aabeb84946002f92c5e99ff1ada0038ad31463009a
  Scenario: [Regression][My Catalog][Products] - product data consistency
    Then I visit the insights /catalog/products?offset=0&limit=2 page
    Then I can open artist page from Products tab
    When I visit the insights /catalog/products page
    And I can navigate to My Catalog
    Then I can navigate to the Artists tab on the page
    And I can navigate to the Products tab on the page
    Then I can see table data is correct on My Catalog - Products tab
    And I can open product page from Products tab
    And I can verify data on Product page is the same as on from My Catalog - Product tab
