Skip to content
Snippets Groups Projects
Commit b4c94ed7 authored by Diogo Vargas's avatar Diogo Vargas
Browse files

ISAICP-8956: Fix solution tests after only allowing to add members to users...

ISAICP-8956: Fix solution tests after only allowing to add members to users with permission manage group add members.
parent f109ac60
No related branches found
No related tags found
1 merge request!179Release v1.111.0
@api @group-g
Feature: Solution membership administration
In order to manage a solution
As a solution facilitator
As a privileged user
I need to be able to manage solution members
Background:
......@@ -12,10 +12,10 @@ Feature: Solution membership administration
| name | email |
| Princeton-Plainsboro Teaching University | info@princeton-plainsboro.edu |
And users:
| Username | Roles | E-mail | First name | Family name |
| Username | E-mail | First name | Family name |
# Authenticated user.
| Guadalupe Norman | | guadalupe_norman@example.com | Guadalupe | Norman |
| Marcia Garcia | | marcia_garcia@example.com | Marcia | Garcia |
| Guadalupe Norman | guadalupe_norman@example.com | Guadalupe | Norman |
| Marcia Garcia | marcia_garcia@example.com | Marcia | Garcia |
And the following solutions:
| title | related solutions | description | documentation | moderation | logo | topic | state | solution type | owner | contact information |
| The Missing Sons | | Blazing fast segmentation faults. | text.pdf | no | logo.png | Demography | published | | James Wilson the 2nd | Princeton-Plainsboro Teaching University |
......@@ -24,7 +24,7 @@ Feature: Solution membership administration
| The Missing Sons | Guadalupe Norman | facilitator |
| The Missing Sons | Marcia Garcia | |
Scenario: Only privileged members should be able to add members
Scenario: Privileged members should not be allowed to add users to a solution.
When I am not logged in
And I go to the members page of "The Missing Sons"
Then I should not see the link "Add members"
......@@ -39,6 +39,14 @@ Feature: Solution membership administration
When I am logged in as "Guadalupe Norman"
And I go to the members page of "The Missing Sons"
Then I should not see the link "Add members"
Scenario: Moderators should be allowed to add users to a solution.
Given users:
| Username | Roles | E-mail | First name | Family name |
| Daniel Moder | moderator | daniel_moder@example.com | Daniel | Moder |
When I am logged in as "Daniel Moder"
And I go to the members page of "The Missing Sons"
Then I should see the link "Add members"
# Add a facilitator.
......@@ -56,14 +64,12 @@ Feature: Solution membership administration
# Try new privileges.
When I am logged in as "Marcia Garcia"
And I go to the members page of "The Missing Sons"
Then I should see the link "Add members"
When I click "Add members"
Then I should see the heading "Add members"
When I click "Invite members"
Then I should see the heading "Invite members"
Scenario: Assign and remove new role to a member
When I am logged in as "Guadalupe Norman"
And I go to the members page of "The Missing Sons"
Then I should see the link "Add members"
Then I check the box "Update the member Marcia Garcia"
Then I select "Add the facilitator role to the selected members" from "Action"
And I press "Apply to selected items"
......@@ -126,7 +132,7 @@ Feature: Solution membership administration
When I am logged in as "dwightone"
And I accept the invitation for the "The Missing Sons" solution group
And I go to the members page of "The Missing Sons"
Then I should see the link "Add members"
And I should see the link "Invite members"
Then I should not see the link "Add members"
But I should see the link "Invite members"
When I click "Invite members"
Then I should see the heading "Invite members"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment