@frontend_distribution
@track_builder
Feature: Track Builder Publishing Obligations

  #DIG-5596, DIG-5619, DIG-7547, CCM-1960
  @ows_product_workflow
  @ows_product_digital
  @ows_product
  @graphql_product
  @ows_contracts
  @id_f09de0f9fdc71ffa3289cf9ecb4e4f04f1ccde0a6f12f2cf9ef872aeb5d52114
  Scenario: Checkmark is present and obligations, publishers are visible on overview
    Given an orchard employee label_7123_admin for workstation
    And I log in
    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 for a digital product
    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
  @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_admin for workstation
    And I log in
    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 for a digital product
    When I choose to withhold digital product publishing royalties
    And I save my publishing obligations
    Then I should see publishers as a required field for a digital product
