@neighbouringRights
@distributionNeighbouringRights
Feature: Deliver Contributions

  @id_1fcc3e3bb158eeefd7e4f6ab18b4323cfffd7320d805126f8290fef895485e7c
  Scenario: Valid contribution can be delivered
    Given an orchard employee label_6971 visits distribution
    And The delivery queue for contributor a98ec5c3-0048-4bfd-853c-86eaa9e0aff0 and society 1603 is empty
    And Marco Niemerski 806b0a2f-36ac-468c-a1c9-6586b1b494f6 has a new contribution with full metadata for CREDIDAM
    And I log in
    When I deliver contributor Niemerski, Marco to Society CREDIDAM
    Then I expect a delivery file to have been generated
    And The job correctly displays in the jobs tab
    And I mark the job as complete
    And I remove the contribution and sound recording I created

  @id_6c52e8f3c128ee8b46280758d3ab7b0261b91078ff43a72773929ab96e9fb699
  Scenario: Contributor awaiting confirmation for a society cannot be selected from dropdown
    Given an orchard employee label_6971 visits distribution
    And The delivery queue for contributor cd869e58-87d3-48d0-afa0-f8af7b56823e and society 1606 is empty
    And Miklos Toldi cd869e58-87d3-48d0-afa0-f8af7b56823e has a new contribution with full metadata for ERATO
    And I log in
    When I try to deliver contributor Toldi, Miklos to Society ERATO
    Then Toldi, Miklos is not selectable in the contributor dropdown

  @id_a0322911092838cddb34ef02d7ab5073f65016588250e89a65ec1787cef3bc2e
  Scenario: Contributor can be selected for society that requires no registration
    Given an orchard employee label_6971 visits distribution
    And The delivery queue for contributor cd869e58-87d3-48d0-afa0-f8af7b56823e and society 1624 is empty
    And Miklos Toldi cd869e58-87d3-48d0-afa0-f8af7b56823e has a new contribution with full metadata for Re:Sound
    And I log in
    When I try to deliver contributor Toldi, Miklos to Society Re:Sound
    Then Toldi, Miklos is selectable in the contributor dropdown
