Feature: Digital Audio Product Builder

  @frontend_distribution
  @ows_product_digital
  @id_c5080c61be3c9c46962e2ba43ac870d1e5f8e222819903d75b45fc1739bf71b8
  Scenario: Digital audio 2 product validation on landing page
    Given an orchard employee label_7123_admin for workstation
    And I log in
    And I am on the project details page for the project: 3872829
    When I add a product to the project
    And I select digital as the product type
    And I submit my product
    Then I should see a validation error message on the product form
    And I should get 3 validation messages for the required fields

  @ows_product_workflow
  @ows_product_digital
  @ows_product
  @graphql_product
  @frontend_distribution
  @id_e4bf64638695e169d4f6e49fb686f779822a4f9dec5eb281e01d6a3161a1d24b
  Scenario: Digital audio 2 product created via landing page with all fields
    Given an orchard employee label_7123_admin for workstation
    And I log in
    And I have existing Digital Product data for all fields
    And I am on the project details page for a newly created project
    When I add a product to the project
    And I select digital as the product type
    And I populate the digital product landing page form with data
    And I use my own UPC
    And I submit the digital audio product landing page form
    Then I see the correct basics data on the digital product overview page

  @ows_product_workflow
  @ows_product_digital
  @ows_product
  @graphql_product
  @ows_territories
  @ows_carveouts
  @frontend_distribution
  @ows_contracts
  @id_d15c85dd18bd136b85011ac7cc6939a120a90b9bd7e31aea4e043e2bfa70ac6f
  Scenario: Add and delete territory carveouts from digital product in ALW
    Given an orchard employee label_7123_admin for workstation
    And I log in
    And I am on the digital product territories page for the product 2020312
    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 digital product territories
    Then The product publishing page has loaded
    And I go to the digital product Overview step
    Then I see 64 territories NOT cleared for sale on the digital product overview page

  @ows_product_workflow
  @ows_product_digital
  @ows_product
  @graphql_product
  @frontend_distribution
  @id_b5f2894c1251c92f1c8ee2e31929af0d1f22f69cbb8b57d13147d2f0eaf3b56e
  Scenario: Unsubmit Digital Product
    Given an orchard employee label_7123_admin for workstation
    And I log in
    And Product: 2544106 is unsubmitted
    When I am on the digital product overview page for the project: 4127579, product: 2544106
    And I unsubmit my product
    Then my product should be in In Progress status

  @ows_product_workflow
  @ows_product_digital
  @ows_product
  @graphql_product
  @frontend_distribution
  @regression
  @id_669fbf0cbfd2bf30f7f83992448cccadba3016382d26b9d66a1d1d9236d76a5e
  Scenario: Create digital product as subaccount
    Given an orchard employee subaccount_1_admin for workstation
    And I log in
    When I am on the digital product overview page for a newly-created product for subaccount_1
    Then my product should be in In Progress status
