Feature: Project Manager Complete Workflow

  # uses dev frontend that always uses label 7123
  @wip
  @ows_account
  @ows_project_manager
  @ows_artist
  @ows_marketing
  @ows_sales_goals
  @frontend_distribution
  @id_837ef301d0affd83b531163535d25176c4fa6d8929f9b26921ea992461472444
  Scenario: Create project, add product, manage highlights, and verify workflow
    Given an orchard employee label_7123 for workstation
    And I log in to workstation silently
    # Project Manager II -> Navigate to distribution app through audio button
    Given I am on the workstation home page
    When I begin to create a new project
    Then I am redirected to the create project page
    # Project Manager I -> Create a new project as label with required fields and existing dropdowns
    And I am on the digital product overview page for a newly-created product
    When I go to the digital product Basics section
    And I populate required digital product basics fields
    And I populate the digital product imprint with existing options
    And I submit the digital audio product basics page form
    When I go to the digital product Overview step
    Then I see the correct basics data on the digital product overview page
    When I am on the workstation catalog projects page
    Then I should see the project in the projects list
    # Project Manager II -> Add project highlights
    And I am on the digital project overview page for a newly-created project
    And I am on the digital project highlights page for the new project
    When I add United States as a priority territory from the project management page
    And I add highlights to my project
    Then my highlights should be visible
    # Project Manager I -> Delete a project without products
    And I am on the digital project overview page for a newly-created project
    When I delete the project
    And I am on the workstation catalog projects page
    Then I should not see the project in the projects list

  @wip
  @frontend_distribution
  @id_595d2ee22d41e07f8147fcafb0399bf2c7538b8c7c96432f0d434d13e5a1e735
  Scenario: Create new project as D3
    Given an orchard employee d3_16055 for workstation
    And I log in to workstation silently
    And I am on the digital product overview page for a newly-created product
    When I go to the digital product Basics section
    And I populate required digital product basics fields
    And I populate the digital product imprint with existing options
    And I submit the digital audio product basics page form
    And I go to the digital product Overview step
    Then I see the correct basics data on the digital product overview page
    When I am on the workstation catalog projects page
    Then I should see the project in the projects list


# Above is a consolidation of the following: file -> feature -> scenario
# cypress/e2e/workstation/productBuilder/projectManagerII.feature -> Project Manager II -> Navigate to distribution app through audio button
# cypress/e2e/workstation/productBuilder/projectManagerI.feature -> Project Manager I -> Create a new project as label with required fields and existing dropdowns
# cypress/e2e/workstation/productBuilder/projectManagerII.feature -> Project Manager II -> Add project highlights
# cypress/e2e/workstation/productBuilder/projectManagerI.feature -> Project Manager I -> Delete a project without products
# cypress/e2e/workstation/productBuilder/projectManagerII.feature -> Project Manager II -> Create new project as D3
# Note: Scenario "Create a new project as label with optional fields and new dropdowns" already refactored to copyDigitalProduct1.feature
# Pause pipeline execution while collecting data for framework comparison and refactor analysis