# Refactored -> cypress/e2e/workstation/productBuilderMigration/physicalProductBuilderArtwork.feature
Feature: Physical Product Builder Artwork

  # This scenario can be implemented as a frontend component test.
  # Recommend for deletion: It uses the same underlying methods as digital products.
  @refactor_old
  @ows_assets
  @frontend_distribution
  @id_8e4e339115efe01c42b2adb36bf2ae31fab2a6eefb1584f5cc0a9e575d91e1df
  Scenario: Upload invalid 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
    And I upload an invalid artwork
    Then I should see an error message that the artwork is invalid

  # Recommend for deletion: It uses the same underlying methods as digital products.
  # The functionality is already fully covered by:
  # cypress/e2e/workstation/productBuilder/physicalProductBuilder2.feature -> Scenario: Create and submit physical product as D3
  @refactor_old
  @frontend_distribution
  @ows_product_physical
  @ows_assets
  @id_29f9e1bccc51b8cdcaf3f46f975e13aa4bb52d07a7c051b1434ba505db328fe8
  Scenario: Upload valid 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
    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

  @refactor_old
  @frontend_distribution
  @ows_product_physical
  @ows_assets
  @id_b0abe7c606f05a987833efe568bb2820dbfe974f8071e98ba43d34449b7421e9
  Scenario: User is redirected to 'review' after navigating from completed product artwork page
    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
    And I go to the physical product territories step
    Then I should be redirected to product review page

  @refactor_old
  @frontend_distribution
  @ows_product_physical
  @ows_assets
  @id_21dbfe705982dad3890abacd75a97a30ee800b84b9e1e0b72477a067a0b72361
  Scenario: Change completed physical product artwork
    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
    And I replace with a valid artwork
    Then I see the new artwork on the physical product review page
