Feature: Project Manager
  # uses dev frontend that always uses label 7123

  @ows_account
  @ows_project_manager
  @ows_artist
  @ows_marketing
  @frontend_distribution
  Scenario: Create a new project as label with required fields and existing dropdowns
    Given a standalone Workstation label_7123 user
    And I am on the Project::CreateProjectPage
    And I have existing Project data for required fields
    When I create a project
    Then I should see the correct project details
    And I should see it in the projects list

  @wip
  @ows_account
  @ows_project_manager
  @ows_artist
  @ows_marketing
  @frontend_distribution
  Scenario: Create a new project as label with optional fields and new dropdowns
    Given a standalone Workstation label_7123 user
    And I am on the Project::CreateProjectPage
    And I have new Project data for all fields
    When I create a project with new dropdowns
    Then I should see the correct project details
    And I should see it in the projects list

  @ows_project_manager
  @ows_marketing
  @frontend_distribution
  Scenario: Delete a project without products
    Given a standalone Workstation label_7123 user
    And I am on the Project::ProjectDetailsPage for a newly created project
    When I delete the project
    Then I should not see the project in the projects list

  @wip
  @ows_account
  @ows_project_manager
  @ows_artist
  @ows_marketing
  @frontend_distribution
  Scenario: Edit an existing project as a label with optional fields and new dropdowns
    Given a standalone Workstation label_7123 user
    And I have an existing empty project
    And I am on the Project::ProjectDetailsPage for the project
    And I have new Project data for all fields
    When I edit the project
    Then I should see the correct project details

  # TODO: Scenario: Select existing project as label

  @ows_project_manager
  @frontend_distribution
  # DIG-5812 DIG-5813 DIG-5810
  Scenario: Project code can't be changed to an existing one and can be changed to unique one
    Given a standalone Workstation label_7123 user
    And I have an existing empty project for project_code testing
    When I try to set project_code to an occupied one
    Then I should see an error message that the project_code is occupied
    When I try to set project_code to an unique one
    Then I should not see an error message that the project_code is occupied

  @ows_project_manager
  @ows_sales_goals
  @frontend_distribution
  # CAT-747
  Scenario: Add project highlights
    Given a standalone Workstation label_7123 user
    And I have a new project
    And I am on the Project::ProjectHighlightsPage for the 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

  @frontend_distribution
  # was moved here from legacy/project_manager.feature during legacy -> SPA SA migration
  Scenario: Navigate to distribution app through audio button
    Given a standalone Workstation label_7123 user
    And I am on the ReactWorkstation::ReactHomePage
    When I begin to create a new project
    Then I am redirected to the Project::CreateProjectPage

  @frontend_distribution
  # was moved here from legacy/project_manager.feature during legacy -> SPA SA migration
  Scenario: Create new project as D3
    Given a standalone Workstation d3_16055 user
    And I am on the ReactWorkstation::ReactCreateProjectPage
    And I have existing Project data for required fields
    When I create a project
    Then I should see the correct project details
    And I should see it in the projects list
