@legacy
@oa @oa_release
Feature: OA Edit Release
  In order to ensure I can edit a release in OA
  As a vendor
  I need to verify everything that the edit release page works

  @regression
  Scenario: OA - Search for release
    Given an OA Technology_manager user
    When I search for release 889176466595
    And I click the Edit Release button
    Then I should be on the edit release page for UPC 889176466595

  @wip
  Scenario: OA - check edit release ratings
    Given an OA Technology_manager user
    When I visit the edit release page for UPC 888608954716
    And I save "ag-movies" ratings
    Then I should see that ratings for "ag-movies" saved successfully
  
  @smoke_dev
  Scenario: Copy tracks to existing release
    Given an OA Technology_manager user
    Given I have an existing release to copy to
    When I copy tracks from a release to that existing release
    Then I should see the tracks from the original release copied to the existing one

  Scenario: OA - Verify in content Digital release is editable in OA
    Given an OA Technology_manager user
    When I search for release 889176466595
    And I clear all required release field
    Then I should get release required field missing error
    When I set all the required field
    Then I should be able to save my changes successfully

#  Test for legacy film content
  @wip
  @smoke_dev
  Scenario: Validate new film localization for required/duplicated fields + crud
    Given an OA Technology_manager user
    And there are no localizations for UPC 190374897273
    When I attempt to add a film localization without_required fields
    Then I should see the validation messages for the required localization fields
    When I attempt to add a film localization with_duplicated fields
    Then I should see the validation messages for the duplicate localization fields
    When I set values for new localization and save
    Then I should be able to see the values of localization
    When I update values and save
    Then I should be able to see the values of localization
    When I remove the newly added localization
    Then the localization should no longer exist
