Feature: Managing Sales Goals, Pricing, and Projections for Physical Products in a New Project Workflow

  @ows_account
  @ows_product
  @graphql_product
  @ows_product_physical
  @ows_project_manager
  @ows_marketing
  @frontend_distribution
  @id_90188fe0d9fe04423d923338ad3474650778410b0be181bedf11c992a21552ff
  Scenario: Add and delete tracks from physical product with summary verification
    Given an orchard employee label_7123_admin for workstation
    And I log in
    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 physical product
    When I go to the review section
    Then I can see my expected track data on the summary page
    And I delete the product
    Then I should not see the product in the sidebar

  @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_admin for workstation
    And I log in
    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

  @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_admin for workstation
    And I log in
    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 on physical product
    And I move the continent Europe to NOT cleared for sale on physical product
    And I move Austria in Europe to cleared for sale on physical product
    Then I see 63 territories NOT cleared for sale on the territory restrictions page on physical product
    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

  @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_admin for workstation
    And I log in
    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 4
    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

  @ows_account
  @ows_product
  @graphql_product
  @ows_product_physical
  @ows_project_manager
  @ows_marketing
  @ows_sales_goals
  @frontend_distribution
  @id_cc936c276d580d53ea360aac488682499d971fd79a5828d24d52558a52a88
  Scenario: Edit and delete sales goals and verify totals update correctly
    Given an orchard employee label_7123_admin for workstation
    And I log in
    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
    And I delete any existing goals
    And I select United States as a target market
    Then I should see all distribution fields are disabled
    And I cancel edits
    And I delete any existing goals
    Then I should see no goal values on the page
