Feature: Physical Product Builder 2

  # This scenario can be implemented as a frontend component test.
  @refactor_keep
  @ows_account
  @ows_product
  @graphql_product
  @ows_product_physical
  @ows_project_manager
  @ows_marketing
  @ows_sales_goals
  @frontend_distribution
  @id_7eb9fc7d4357fd4385453a2debd0e0c9716675c8f1b02138442587fc058d16f5
  Scenario: Edit Sales Goal on delivered product
    Given an orchard employee label_7123 for workstation
    And I log in to workstation silently
    And I am on the product details page for the project: 3886616, product: 2251200
    And the physical product 2251200 has goals and a first week estimate
    When I go to the physical product projections section
    Then I should not see any delete goal elements
    And I should not see the target market dropdown
    When I click edit on the first target market goal
    And I should see that the first week estimate field is disabled
    Then I should see that my target goal input elements are disabled

  # Refactored -> cypress/e2e/workstation/productBuilderMigration/physicalProductBuilder1.feature
  @refactor_old
  @ows_account
  @ows_product
  @graphql_product
  @ows_product_physical
  @ows_project_manager
  @ows_marketing
  @frontend_distribution
  @id_f7ea141c36471b3f53048418b6eb0fad6a9ca88579993292927a4c5cea5d1942
  Scenario: Delete Sales Goal Workstation (PHYS-2855)
    Given an orchard employee label_7123 for workstation
    And I log in to workstation silently
    And I am on the product details page for the project: 3501773, product: 1916480
    And the physical product 1916480 has goals and a first week estimate
    And I go to the physical product projections step
    And I delete any existing goals
    Then I should see no goal values on the page

  @refactor_keep
  @ows_account
  @ows_product
  @graphql_product
  @ows_product_physical
  @ows_project_manager
  @ows_marketing
  @frontend_distribution
  @id_f07f6d3ad8af11cb87b52dc0c993bbc4282ed18d482a2769821d62c4278fb71f
  Scenario: Changing my Orchard pricing tier will update summary panel (PHYS-3588)
    Given an orchard employee label_7123 for workstation
    And I log in to workstation silently
    And I have existing Physical Product data for label 7123 for all fields
    And I am on the project details page for a newly created project
    And I add a product to the project
    And I select physical as the product type
    And I submit the physical audio product landing page form
    And I add release basics to the Physical Product without saving
    When I change my orchard pricing to CD Tier #2
    Then my US pricing code should be CD9

  # Refactored -> cypress/e2e/workstation/productBuilderMigration/physicalProductBuilder1.feature
  @refactor_old
  @ows_account
  @ows_product
  @graphql_product
  @ows_product_physical
  @ows_project_manager
  @ows_marketing
  @frontend_distribution
  @id_00e28f16d2dd4a56cfee13e4f1629981e7e50caaea90adbc67992ee3a0e40d3d
  Scenario: Verify tracklist summary
    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
    And I am on the physical product tracks page for the new product
    When I add a track to the product
    And I go to the review section
    Then I can see my expected track data on the summary page

  # This is a good user journey/workflow scenario to keep as an E2E test.
  @refactor_keep
  @ows_account
  @ows_product
  @graphql_product
  @ows_product_physical
  @ows_project_manager
  @ows_marketing
  @frontend_distribution
  @id_a4998b4df21eeee377a8f7c66624a3413a53a1f44e85a8561ff6c3efcd068e31
  Scenario: Create and submit physical product as D3
    Given an orchard employee d3_16055 for workstation
    And I log in to workstation silently
    And I have existing Physical Product data for subaccount 3 for all fields
    And I am on the project details page for a newly created project
    And I add a product to the project
    And I select physical as the product type
    And I submit the physical audio product landing page form
    And I add release basics to the Physical Product
    And I go to the physical product projections step
    And I select United States as a target market
    And I enter a first week estimate of 10
    And I save my sales goal
    And I go to the physical product tracklist step
    When I add a track to the product
    And I go to the physical product artwork step
    And I upload a valid artwork
    And I go to the review section
    And I submit the physical product
    Then I see that the product is submitted
