@insights_regression
@insights_song
Feature: Song Page Charts Tab

  Background: [Regression][Song] Charts tab
    Given an orchard employee insightsreal for insights
    And I log in to Insights silently
    When I visit the insights /song/USSM19902991/charts page

  @IN-12525
  @id_ef45e59af42e7abf44d0aa6c190e857d2bdb4408c96bbf79599f4efa929c9244
  Scenario: [Regression][Song] Charts tab - view
    Then I can verify ui on charts tab Song page

  @IN-12550
  @id_bfb2d7ccc5904bae24eebff16372616d44a72e2619c523067169d4f97f159bcd
  Scenario: [Regression][Song] Charts tab - table sorting
    And I sort by Chart column on charts tab Song page
    Then I can verify table sorted by Chart column asc on charts tab Song page
    When I sort by Chart column on charts tab Song page
    Then I can verify table sorted by Chart column desc on charts tab Song page

    When I sort by Market Size column on charts tab Song page
    Then I can verify table sorted by Market Size column desc on charts tab Song page
    When I sort by Market Size column on charts tab Song page
    Then I can verify table sorted by Market Size column asc on charts tab Song page

  @IN-12553
  @id_be115a4f1579e63c70bf4d27b035a9396634ae90fdb7e9c52ec61a654e7ecfda
  Scenario Outline: [Regression][Song] Charts tab - filtering by <filter_value>
    And I select <filter_value> filter on charts tab Song page
    Then I can verify <column> column has <value> values on charts tab Song page

    Examples:
      | filter_value      | column   | value              |
      | Blues TYPE        | Chart    | Amazon Daily Blues |
      | Australia COUNTRY | Country  | Australia          |
      | Current PERIOD    | Position | positions          |

  @IN-12555
  @id_4a3e1152eccda35fff2323cc4757bdaf805fbb4959a0ccc73cdcb4991cf678d0
  Scenario: [Regression][Song] Charts tab - row graph
    Then I can expand row graph on charts tab Song page
    And I can verify row graph tooltip data on charts tab Song page
    And I can collapse row graph on charts tab Song page

  @IN-12570
  @id_6ac8c7078326deaeaf7f67056bd9dd3ce486ebf0b461c93ca7303919b7c26b4d
  Scenario: [Regression][Song] Charts tab - entities data
    Then I can verify list of entities data on charts tab Song page
