Feature: Digital Audio Product Error Correction

  @ows_product_workflow
  @ows_product_digital
  @ows_product
  @graphql_product
  @frontend_distribution
  @id_ed82e6181d02719d129cb9e4a99bf1ccb33fdd88d36eda1942f71a5a84390781
  Scenario: Edit fields on approved release with different workflows
    Given an orchard employee label_7123_admin for workstation
    And I log in
    # DIG-5886, this can be implemented as a frontend component test
    # Digital Audio Product Error Correction -> Edit non-delivered field on approved release
    When I am on the digital product overview page for the product 2162151
    And I go to the digital product basics section
    And I replace the special instructions
    Then I should see a success alert indicating I edited a non-delivered field
    And my product should be in Complete status
    # DIG-5887, DIG-6128, This can be implemented as a frontend component test
    # Digital Audio Product Error Correction -> Edit delivered field on approved release and discard
    When I go to the digital product basics section
    And I replace the product name
    Then I should be on the Digital Product Overview page
    And I should see a warning alert indicating I edited a delivered field
    And my product should be in Correction status
    When I discard changes
    Then my product should be in Complete status

  # DIG-5888
  @ows_product_workflow
  @ows_product_digital
  @ows_product
  @graphql_product
  @frontend_distribution
  @id_10998e8071f1e240d7baefb739e834ae7de10cf9921d0ba23478dd4957398d1c
  Scenario: Edit delivered field on approved release and submit
    Given an orchard employee label_7123_admin for workstation
    And I log in
    And my product 2176241 is in complete status
    When I am on the digital product overview page for the product 2176241
    And I unsubmit my product
    And I go to the digital product basics section
    And I change the subgenre
    Then I should see a warning alert indicating I edited a delivered field
    And my product should be in Correction status
    When I resubmit my product
    Then I should see the resubmit success modal
    And my product should be in Submitted status
