# Moved -> cypress/e2e/workstation/productBuilderMigration/trackBuilderPublishingObligation.feature
@frontend_distribution
Feature: Track Builder Publishing Obligations

  #DIG-5596, DIG-5619, DIG-7547, CCM-1960
  @refactor_keep
  @ows_product_workflow
  @ows_product_digital
  @ows_product
  @graphql_product
  @ows_contracts
  @id_0312b8662c99375bb81197ce950fd535e6b04474cdf55f3221098ee9b4dd4b53
  Scenario: Checkmark is present and obligations, publishers are visible on overview
    Given an orchard employee label_7123 for workstation
    And I log in to workstation silently
    And I have a new digital product for the project 3697912 for label 7123
    And I am on the digital product tracks page for a product with 1 track
    When I specify Less than 100% controlled (at least partially administered by 3rd party) as the publishing obligation for the track
    Then I should not see the withhold royalties options
    And I fill in publishers with MESAM/MSG
    And I fill in publishers when Sony / ATV publishers separated with /
    When I save my publishing obligations
    Then I should see my publishing obligations on the overview page
    And I check saved publishers MESAM/MSG, Sony, ATV
    And a green checkmark should be shown next to the publishing obligation step

  #DIG-7577, DIG-5609
  @refactor_keep
  @ows_product_workflow
  @ows_product_digital
  @ows_product
  @graphql_product
  @ows_contracts
  @frontend_catalog_product_builder
  @id_50dcfc7c90a3de0f11d897ec92085253d4be1e3c4c5961e84cc1ca4251984d27
  Scenario: Withhold Royalties is present and publishers is required for mech admins
    Given an orchard employee label_16155 for workstation
    And I log in to workstation silently
    And I am on the digital product tracks page for the project: 3948760, product: 2343467
    When I specify Less than 100% controlled (at least partially administered by 3rd party) as the publishing obligation for the track
    Then I should see the withhold royalties options
    When I choose to withhold digital product publishing royalties
    And I save my publishing obligations
    Then I should see publishers as a required field
