Feature: Track Builder Validation
  In order to ensure I can validate tracks in the tracklist
  As a vendor
  I need to verify Track Builder validation feature

  @ows_track
  @ows_assets
  @frontend_distribution
  Scenario: Track has a validation icon if not all necessary fields are completed
    Given a standalone Workstation label_7123 user
    And I am on the Project::DigitalProductTracksPage for a product with no tracks
    When I import a valid track via "upload from computer" dialog box
    And I click ValidateProduct button
    Then I should see a validation message for missing track fields
    And I should see an icon for a track because not all fields are filled

  @ows_track
  @ows_assets
  @frontend_distribution
  Scenario: Track has no validation icon if all necessary fields are completed
    Given a standalone Workstation label_7123 user
    And I am on the Project::DigitalProductTracksPage for the product 2094179
    And track 1 has no metadata
    When I fill in all the required track builder fields
    Then I should not see the validation warning for that track

  @wip
  @ows_track
  @ows_assets
  @frontend_distribution
  Scenario: Delete and add track performers
    Given a standalone Workstation label_7123 user
    And I am on the Project::DigitalProductTracksPage for the product 2094179
    When I delete all optional track contributors
    Then only the primary performer is left
    When I add a Primary performer with the Wind Instruments - Didgeridoo role
    And I add a Featured performer with the Vocals - Whistling role
    And I add a Non-Featured performer with the Percussion - Vibra-Slap role
    And I add studio personnel with Additional Engineer role
    And I add label personnel with A & R Administrator role
    And I add a compositional contributor with Author role
    And I save all the performers that I added
    Then I can see the performers that I added in the performers section
    And I can see the studio personnel I added in the studio personnel section
    And I can see the label personnel I added in the label personnel section
    And I can see the compositional contributor I added in the compositional contributor section

  @frontend_distribution
  @ows_product_workflow
  @ows_product_digital
  @ows_product
  @ows_track
  @ows_lyrics
  # DIG-6737
  Scenario: Add lyrics to track
    Given a standalone Workstation label_7123 user
    And track 26847622 has no lyrics
    And I am on the Project::DigitalProductTracksPage for the product 2206986
    And I add lyrics to my track and save
    When I am on the Project::DigitalProductTracksPage for the product 2206986
    Then I should see my expected lyrics on the track
