# Refactored -> cypress/e2e/workstation/productBuilderMigration/trackBuilderValidationI.feature
Feature: Track Builder Validation I
  To ensure I can validate tracks in the tracklist
  As a vendor
  I need to verify Track Builder validation feature

  # This scenario can be implemented as a frontend component test.
  @refactor_old
  @ows_track
  @ows_assets
  @frontend_distribution
  @id_b0fa9a224eac928a1c4f8431a44cfacef21f1587bc1a13c990b8742a72b0e5a3
  Scenario: Track has a validation icon if not all necessary fields are completed
    Given an orchard employee label_7123 for workstation
    And I log in to workstation silently
    And I have a new digital product for the project 3697912 for label 7123
    And I am on the digital product tracks page for a product with no tracks
    When I import a valid track via upload from computer dialog box
    And I click the validate product 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

  # This scenario can be implemented as a frontend component test.
  @refactor_old
  @ows_track
  @ows_assets
  @frontend_distribution
  @id_49ee0f43586d37613afdd97a6aca1d97dd0249a1b24a2129180d5c7d755746a5
  Scenario: Track has no validation icon if all necessary fields are completed
    Given an orchard employee label_7123 for workstation
    And I log in to workstation silently
    And I have a new digital product for the project 3697912 for label 7123
    And I am on the digital product tracks page for a product with 1 track
    When I fill in all the required track builder fields
    And I click the validate product button
    Then I should see a validation icon for complete track fields
