Feature: Digital Audio Product Error Correction

  @wip
  @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 for workstation
    And I log in to workstation silently
    # 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 action required 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
  @wip
  @refactor_keep
  @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 for workstation
    And I log in to workstation silently
    And my product 2176241 is in complete status
    When I am on the digital product action required 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


# Above is a consolidation of the following: file -> scenario
# cypress/e2e/workstation/productBuilder/digitalAudioProductBuilderErrorCorrection.feature -> Edit non-delivered field on approved release
# cypress/e2e/workstation/productBuilder/digitalAudioProductBuilderErrorCorrection.feature -> Edit delivered field on approved release and discard
# Pause pipeline execution while collecting data for framework comparison and refactor analysis