@legacy
Feature: Release Approval

  # QA-379359
  @oa
  @cache_warm
  @regression
  Scenario: Check out and check in release
    Given an OA Technology_manager user
    And the release 889176687242 is not checked out
    When I check out release 889176687242
    Then I am on the release approval page

  # Will be tweaking this scenario with the next phase, QA-379360
  @oa
  @wip
  Scenario: Verify Orchard/Sony validation messaging in release approval
    Given an OA Technology_manager user
    And the release 887396907096 is not checked out
    And show_gras_messages is enabled
    When I check out release 887396907096
    Then I see an error message saying it failed Orchard/Sony validation
    And show_gras_messages is disabled

  # QA-918, QA-379361
  @oa
  Scenario: Verify Blacklist artist release validation messaging in release approval
    Given an OA Technology_manager user
    And the release 191018697426 is not checked out
    When I check out release 191018697426
    Then I should see warning banner of "This release will likely be blocked"

  # DIG-5898, DIG-7267
  # Scenario disabled due to track reupload error, issue QA-1000199
  @wip
  @oa+workstation
  Scenario: Approve an error corrected release with corrected audio asset
    Given a Workstation label_7123 user
    And I have a digital product I wish to approve
    And my product is in complete status
    When I am on the Project::DigitalProductActionRequiredPage for the product
    And I go to the digital product basics section
    And I replace the product name
    And I go to the digital product tracks section
    And I replace track's audio file
    Then I can see the track is processed
    When I resubmit my product
    Then I should see the resubmit success modal
    And my product should be in SUBMITTED status
    Given an OA Technology_manager user
    And the release 192562102152 is not checked out
    When I check out release 192562102152
    Then the product name matches my new product name
    When I approve the release
    And I wait for the approval to submit
    Then the release should be in content

  @oa+workstation
  @clear_cookies
  Scenario: Create and approve new release
    Given a Workstation label_7482 user
    Given I have a new project and digital product for label 7482
    And I have a blank track with all required fields for label 7482
    And I am on the Project::DigitalProductOverviewPage for the product
    When I go to the digital product artwork section
    And I upload valid artwork
    And I go to the digital product tracks step
    And I replace track's audio file
    And I can see the track is processed
    And I save my track and continue to the next step
    Then I submit my product
    Given an OA Technology_manager user
    When I look for the release in Release Approval
    And I check out the release
    And I approve the release
    And I confirm that the release is not for distribution
    And I wait for the approval to submit
    Then the release should be in content
