Feature: Physical Product Builder Artwork

  # Recommend for deletion: It uses the same underlying methods as digital products
  @wip
  @ows_assets
  @frontend_distribution
  @ows_product_physical
  @id_9adb5c814064bf8513b0728f31b1bdbf8c2a8b8378ef8b2abd7742b352d38913
  Scenario: Upload and validate physical product artwork
    Given an orchard employee label_7123 for workstation
    And I log in to workstation silently
    And I have existing api Physical Product data for label 7123 for all fields
    And I have a new project and physical product
    When I am on the physical product details page for the new product
    And I go to the physical product artwork step
    # Physical Product Builder Artwork -> Upload invalid physical product artwork
    # This can be a frontend component test.
    And I upload an invalid artwork
    Then I should see an error message that the artwork is invalid
    # Physical Product Builder Artwork -> Upload valid physical product artwork
    # The functionality is already fully covered by:
    # cypress/e2e/workstation/productBuilder/physicalProductBuilder2.feature -> Scenario: Create and submit physical product as D3
    And I upload a valid artwork
    And I go to the physical product review step
    Then I see the new artwork on the physical product review page

  @wip
  @frontend_distribution
  @ows_product_physical
  @ows_assets
  @id_260376b81af330f1e8bffcc427cf5a984d42043343e2fb10f109f3a560c41d00
  Scenario: Manage artwork on completed physical product
    Given an orchard employee label_7123 for workstation
    And I log in to workstation silently
    And I am on the physical product completed page for an existing product
    When I go to the physical product artwork section
    # Physical Product Builder Artwork -> User is redirected to 'review' after navigating from completed product artwork page
    And I go to the physical product territories step
    Then I should be redirected to product review page
    # Physical Product Builder Artwork -> Change completed physical product artwork
    When I go to the physical product artwork section
    And I replace with a valid artwork
    Then I see the new artwork on the physical product review page


# Above is a consolidation of:
# cypress/e2e/workstation/productBuilder/physicalProductBuilderArtwork.feature
# Pause pipeline execution while collecting data for framework comparison and refactor analysis