-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved site:team:add for users on sites w/o the change_management f…
- Loading branch information
1 parent
a20082e
commit c0bedac
Showing
6 changed files
with
346 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,12 +9,26 @@ Feature: Managing a site's team | |
|
||
@vcr site-team-add.yml | ||
Scenario: Adding a team member | ||
When I run "terminus site:team:add [[test_site_name]] [[other_user]] --role=team_member" | ||
When I run "terminus site:team:add [[test_site_name]] [[other_user]] developer" | ||
And I list the team members on "[[test_site_name]]" | ||
Then I should get: | ||
""" | ||
[[other_user]] | ||
""" | ||
Then I should get: "----------- ----------- ----------------------- ------------- --------------------------------------" | ||
And I should get: "First name Last name Email Role User ID" | ||
And I should get: "------------ ----------- ----------------------- ------------- --------------------------------------" | ||
And I should get: "Dev User [email protected] team_member 11111111-1111-1111-1111-111111111111" | ||
And I should get: "Dev User [email protected] developer 3a1d2042-cca3-432e-94c4-12a8f2b6a950" | ||
And I should get: "------------ ----------- ----------------------- ------------- --------------------------------------" | ||
|
||
@vcr site-team-add-no-change-mgmt.yml | ||
Scenario: Adding a team member without change management enabled | ||
When I run "terminus site:team:add [[test_site_name]] [[other_user]] developer" | ||
Then I should see a warning message: Site does not have change management enabled, defaulting to user role team_member. | ||
And I list the team members on "[[test_site_name]]" | ||
Then I should get: "------------ ----------- ----------------------- ------------- --------------------------------------" | ||
And I should get: "First name Last name Email Role User ID" | ||
And I should get: "------------ ----------- ----------------------- ------------- --------------------------------------" | ||
And I should get: "Dev User [email protected] team_member 11111111-1111-1111-1111-111111111111" | ||
And I should get: "Dev User [email protected] team_member 3a1d2042-cca3-432e-94c4-12a8f2b6a950" | ||
And I should get: "------------ ----------- ----------------------- ------------- --------------------------------------" | ||
|
||
@vcr site-team-role.yml | ||
Scenario: Changing a team member's role | ||
|
Oops, something went wrong.