@legacy
@oa @oa_release
Feature: OA Edit Track
  In order to edit and enter track info through OA
  as an OA Technology_manager user
  I need to verify everything in OA edit track page

  Scenario: Verify mandatory fields for updating existing track
    Given an OA Technology_manager user
    And I am on the OA::ViewReleasePage for UPC 886788172708
    When I edit the track details
    And I reset all the mandatory fields for the first track
    And I update the track info
    Then I should see error notification "You didn't select track type."
    When I set track type to "Music"
    # Remove the next line once LNC-530 get fixed
    And I update the track info
    Then I should see error notification "Please select Track Audio Language."
    When I enter track data in default fields
    And I update the track info
    Then I should see success notification "Track Info Successfully updated."
    And I verify track data in default fields

  # marking as wip as lnc field feature is in backlog (LNC-381)
  @wip
  Scenario: Verify lnc fields for updating existing track
    Given an OA Technology_manager user
    And I am on the OA::ViewReleasePage for UPC 886788172708
    And oa_edit_track_lnc_fields is enabled
    When I edit the track details
    And I reset all the mandatory fields for the first track
    And I enter track data in lnc fields
    And I update the track info
    Then I should see success notification "Track Info Successfully updated."
    And I verify track data in lnc fields

    # 2021-05-17 ows-product-film has been decommissioned, test no longer needed
  @ows_product_film @smoke_dev @wip
  Scenario: Update values for OWS product film track crop information
    Given an OA Technology_manager user
    When I update the crop information for a film track
    Then I should see success notification "Track Info Successfully updated."
    And I verify crop information data
