@frontend_royalties
@ows_royalties
@ows_abacus_contract
Feature: Abacus Contracts 4

  @id_77685325c2959db386387ca4fbc54f33a900cd42f889d31fc22c88a491edad4c
  Scenario: add contract physical reserves
    Given an orchard employee label_7123_admin_2 for abacus
    And I log in
    And I prepare an abacus account data:
      | Key              | Value                   |
      | companyBrandName | awal                    |
      | paidBy           | AWAL-US                 |
      | agreementType    | AWAL Core               |
      | currency         | EUR                     |
      | owner            | awal                    |
      | paymentMinimum   | 123                     |
      | paymentSchedule  | 45 days after month end |
    And I create 1 new account via API
    And I have a Distribution runcontroller created
    When I have a new Distribution contract lifecycle created with accounts created for AWAL Recordings America, Inc.
    Then I should be able to fill Label contract term details
    Then I should be able to add a contract physical reserves

  @delete_schedule
  @id_b6e0ad2d45bdfcf7816a0739b97a25e1526d98ac267f67600751d18a954f2f97
  Scenario: Neighbouring Rights add contract terms
    Given an orchard employee label_7123_admin_2 for abacus
    When I log in
    And I prepare an abacus account data:
      | Key              | Value                   |
      | companyBrandName | awal                    |
      | paidBy           | AWAL-US                 |
      | agreementType    | AWAL Core               |
      | currency         | EUR                     |
      | owner            | awal                    |
      | paymentMinimum   | 123                     |
      | paymentSchedule  | 45 days after month end |
    And I create 1 new account via API
    And I have a Performer Neighbouring Rights runcontroller created
    And I have a new Performer Neighbouring Rights contract lifecycle created with accounts created for AWAL Recordings America, Inc.
    Then I should be able to add Neighbouring Rights contract contributors
    And I should be able to add schedule for this contributor
    Then I should be able to add NR Contributor Only contract term
    Then I should be able to add NR Contribution Schedule contract term
    Then Physical Reserves section should not be visible
    Then Mechanical Deductions section should not be visible
    Then Product Exceptions section should not be visible
    Then Track Exceptions section should not be visible

  @delete_schedule
  @id_9aa65e8be9b50d5c1ec7489013c9d7b16b62903a000fd0d121022ab2adc2d054
  Scenario: Neighbouring Rights add contract terms (multiple)
    Given an orchard employee label_7123_admin_2 for abacus
    When I log in
    And I prepare an abacus account data:
      | Key              | Value                   |
      | companyBrandName | awal                    |
      | paidBy           | AWAL-US                 |
      | agreementType    | AWAL Core               |
      | currency         | EUR                     |
      | owner            | awal                    |
      | paymentMinimum   | 123                     |
      | paymentSchedule  | 45 days after month end |
    And I create 1 new account via API
    And I have a Performer Neighbouring Rights runcontroller created
    And I have a new Performer Neighbouring Rights contract lifecycle created with accounts created for AWAL Recordings America, Inc.
    Then I should be able to add Neighbouring Rights contract contributors
    And I should be able to add schedule for this contributor
    Then I should be able to add NR Contributor Only multiple contract terms

  @delete_schedule
  @id_080a84cb8fd242832f333e1b5e37d66de99237f80aefdc8f1ec13e54749763e8
  Scenario: Neighbouring Rights contract delete contract terms
    Given an orchard employee label_7123_admin_2 for abacus
    When I log in
    And I prepare an abacus account data:
      | Key              | Value                   |
      | companyBrandName | awal                    |
      | paidBy           | AWAL-US                 |
      | agreementType    | AWAL Core               |
      | currency         | EUR                     |
      | owner            | awal                    |
      | paymentMinimum   | 123                     |
      | paymentSchedule  | 45 days after month end |
    And I create 1 new account via API
    And I have a Performer Neighbouring Rights runcontroller created
    And I have a new Performer Neighbouring Rights contract lifecycle created with accounts created for AWAL Recordings America, Inc.
    Then I should be able to add Neighbouring Rights contract contributors
    And I should be able to add schedule for this contributor
    Then I should be able to add NR Contributor Only contract term
    And I should be able to delete NR contract terms
