@neighbouringRights
@contentNeighbouringRights
Feature: Nr Access Roles

  @id_1215724d180d5784db036a57632b65f1cee2b18382ebda3f3a42638f91d4546c
  Scenario: View Only User has limited access to the catalog page
    Given a user from nr_contribution_view for content
    And I log in
    Then The content catalog page has view only access
    When I go to the content neighbouring rights create page
    Then I see no radio buttons to create a contribution

  @id_166398a4594dbdd1a6b86bf3543d0726cc534c3ec2e2bbc09b6f3c16f2512d36
  Scenario: View, create manage and delete access user can mark contributions as invalid
    Given a user from nr_contribution_view_create_manage_and_delete visits content
    And The contribution with id 5247cace-1a93-4505-8dcb-d4a98c379c6c is valid
    And I log in
    When I visit the neighbouring rights song page for 11ec1573-8b07-4fd9-9c81-cdf887b2268c
    And I mark the contribution by Sandberg, Martin as invalid
    Then The contribution by Sandberg, Martin is marked as invalid

  @id_7df44eae2dbeb7a0fbb5ead9689da845fb64ded4cb09b599bbe3fe8c9c02ffe7
  Scenario Outline: Correct user types cannot mark contributions as invalid
    Given a user from <user> visits content
    And The contribution with id 5247cace-1a93-4505-8dcb-d4a98c379c6c is valid
    And I log in
    When I visit the neighbouring rights song page for 11ec1573-8b07-4fd9-9c81-cdf887b2268c
    Then I cannot mark the contribution by Sandberg, Martin as invalid

    Examples:
      | user                                   |
      | nr_contribution_view_and_create        |
      | nr_contribution_view_create_and_manage |
