@frontend_royalties
@ows_royalties
@ows_abacus_contract
Feature: Abacus Contracts 6

  @id_881a642b3b78e79bbb2e92be760b817dcf596ed3a87eb8f344455d0bd23acc8f
  Scenario Outline: add contract additional notes
    Given an orchard employee label_7123_admin_5 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 <type> runcontroller created
    When I have a new <type> contract lifecycle created with accounts created for AWAL Recordings America, Inc.
    Then I should be able to add contract additional notes

    Examples:
      | type                          |
      | Distribution                  |
      | Performer Neighbouring Rights |

  @id_12ef98e0671c07badeb9ca0e00df9b348f30a376854da3fc93b2b2caa2cf0c16
  Scenario: add contracts with different signing entities
    Given an orchard employee label_7123_admin_5 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
    And I prepare an abacus contract data:
      | Key           | Value                         |
      | contractType  | Distribution                  |
      | signingEntity | AWAL Recordings America, Inc. |
      | renewalRule   | Continuously Active           |
    And I should be able to create Active contract with this data via new flow
    And I prepare an abacus contract data:
      | Key           | Value                                   |
      | contractType  | Distribution                            |
      | signingEntity | AWAL Recordings Licensing America, Inc. |
      | renewalRule   | Continuously Active                     |
    And I should be able to create Active contract with this data via new flow

  @id_21ac45500d616e4a660b46f20b14bc457c56af4e5bcf3ce6a63694fce4976906
  Scenario: edit runcontroller of a contract
    Given an orchard employee label_7123_admin_5 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 active account via API
    And I have a Distribution runcontroller created
    And I prepare an abacus contract data:
      | Key           | Value                         |
      | contractType  | Distribution                  |
      | signingEntity | AWAL Recordings America, Inc. |
      | renewalRule   | Continuously Active           |
    And I should be able to create Active contract with this data via new flow
    Then I should be able to edit runcontroller of a contract
