Feature: React Comparison Tool

  @analytics
  @frontend_analytics
  Scenario: User can search for a song in the add a song box
    Given I am on the ReactWorkstation::ReactComparisonToolPage
    When I search for USA371175310 in the add a song box
    Then I see one result displayed

  @analytics
  @frontend_analytics
  Scenario: Data populates when a song is selected
    Given I am on the ReactWorkstation::ReactComparisonToolPage
    When I search and select USTV10200084 in the add a song box
    Then I see a performance over time chart with some data
    And I see a Source of Streams chart with some data
    And I see a Streams by Subscription chart with some data
    And I see a Top Playlists chart with some data
    And I see a Top Territories chart with some data
    And I see the Top Audience charts with some data

  @analytics
  @frontend_analytics
  Scenario: Data populates when a song is selected and the filter is set to first 7 days
    Given I am on the ReactWorkstation::ReactComparisonToolPage
    And I search and select USTV10400117 in the add a song box
    When I choose First 7 Days in the comparison date filter
    Then I see a performance over time chart with some data
    And I see a Source of Streams chart with some data
    And I see a Streams by Subscription chart with some data
    And I see a Top Playlists chart with some data
    And I see a Top Territories chart with some data
    And I see the Top Audience charts with some data
