Feature: Physical Product Builder 1

  # 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_07575f34056452d28effdddead854cce257a918a313f0ce2f4012003e8cd2c26
  Scenario: Delete in-progress physical product with tracks
    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 delete the product
    Then I should not see the product in the sidebar

  @refactor_keep
  @ows_product
  @graphql_product
  @ows_product_physical
  @frontend_distribution
  @id_f9a5461347dd47f96003589fa29ebfbc9c64b25faca63363798c1f884cd78461
  Scenario: Add and delete tracks from physical 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: 3966651, product: 2366254
    And I go to the physical product tracklist step
    Then I should be able to add and delete track to the product

  @refactor_keep
  @ows_territories
  @ows_carveouts
  @ows_product
  @graphql_product
  @ows_product_physical
  @frontend_distribution
  @id_841ebe0dfde9b5de1f97a51994d1a45d5c46e2a7bfc9b2b07627a16689557676
  Scenario: Add and delete territory carveouts from physical 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: 3501773, product: 1916480
    When I go to the physical product territories step
    And I move all territories to cleared for sale
    And I move the continent Europe to NOT cleared for sale
    And I move Austria in Europe to cleared for sale
    Then I see 63 territories NOT cleared for sale on the territory restrictions page
    When I save the physical product territories
    And I go to the review section
    Then I see 63 territories NOT cleared for sale on the product review page

  @refactor_keep
  @ows_account
  @ows_product
  @graphql_product
  @ows_product_physical
  @ows_project_manager
  @ows_marketing
  @ows_sales_goals
  @frontend_distribution
  @id_2ac5b9613efcfd0e07c88d4196e0595ecb8f829cea2025be398bff8d2ee3ca70
  Scenario: Add sales goals and inspect totals (PHYS-2846)
    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
    When I go to the physical product projections step
    And I delete any existing goals
    And I select United States as a target market
    And I enter a goal of 10 for store number 1
    And I enter a goal of 22 for store number 2
    Then I should see a total of 32 sales goals
    When I save my sales goal
    And I go to the review section
    Then I should see a total of 32 sales goals in review

  # Refactored -> cypress/e2e/workstation/productBuilderMigration/physicalProductBuilder1.feature
  @refactor_old
  @ows_account
  @ows_product
  @graphql_product
  @ows_product_physical
  @ows_project_manager
  @ows_marketing
  @ows_sales_goals
  @frontend_distribution
  @id_cc936c276d580d53ea360aac488682480899d971fd79a5828d24d52558a52a88
  Scenario: Edit Sales Goal (PHYS-2849)
    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
    When I go to the physical product projections step
    And I edit my goals
    Then my totals should reflect my edits

  # Refactored -> cypress/e2e/workstation/productBuilderMigration/physicalProductBuilder1.feature
  # This scenario can be implemented as a frontend component test.
  @refactor_old
  @ows_account
  @ows_product
  @graphql_product
  @ows_product_physical
  @ows_project_manager
  @ows_marketing
  @ows_sales_goals
  @frontend_distribution
  @id_a6c140a9ce57535f0ebc7a56699bded4cde997dc9dcc1580f7f9f20ce4e2a218
  Scenario: Can't change distribution field as a workstation user (PHYS-2832)
    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
    When I go to the physical product projections step
    And I delete any existing goals
    And I select United States as a target market
    Then I should see all distribution fields are disabled
