scinote-web/features/settings_page/team.feature

65 lines
3.5 KiB
Gherkin
Raw Normal View History

Feature: Team settings
As a creator of a team
I want to be able to change team name, team description and user roles
So that I can manage my team
Background:
2019-11-13 23:24:19 +08:00
Given default screen size
Given the "BioSistemika Process" team exists
Given the following users are registered
| email | password | password_confirmation | full_name | initials |
| karli@myorg.com | mypassword1234 | mypassword1234 | Karli Novak | KN |
| marija@myorg.com | mypassword5555 | mypassword5555 | Marija Novak | MN |
| suazana@myorg.com | mypassword6666 | mypassword6666 | Suazana Novak | SN |
And "karli@myorg.com" is in "BioSistemika Process" team as a "admin"
And "marija@myorg.com" is in "BioSistemika Process" team as a "normal_user"
And "suazana@myorg.com" is in "BioSistemika Process" team as a "guest"
And "karli@myorg.com" is signed in with "mypassword1234"
@javascript
Scenario: Successfully changes team name
Given I'm on "BioSistemika Process" team settings page
2018-01-31 19:05:45 +08:00
Then I click on team title
2019-11-03 21:59:30 +08:00
And I change "BioSistemika Process" with "BioSistemika Process Company" in "team-name" input field
Then I click on ".save-button" element
2018-01-31 19:05:45 +08:00
And I should see "BioSistemika Process Company" on "#team-name" element
@javascript
Scenario: Successfully changes team description
Given I'm on "BioSistemika Process" team settings page
2019-11-13 22:10:37 +08:00
Then I click on ".team-description" element
Then I should not see "I was on Triglav one summer." on ".team-description" element
Then I fill in "I was on Triglav one summer." in "#team_1_textarea" rich text editor field
2018-04-25 20:34:23 +08:00
Then I click "Save" button
2019-11-13 22:10:37 +08:00
And I should see "I was on Triglav one summer." on ".team-description" element
@javascript
Scenario: Successfully changes user role
Given I'm on "BioSistemika Process" team settings page
Then I click on "marija@myorg.com" action button within Team members table
And I click "Guest" link within "marija@myorg.com" actions dropdown within Team members table
Then I should see "Guest" in Role column of "marija@myorg.com" within Team members table
@javascript
Scenario: Successfully changes user role
Given I'm on "BioSistemika Process" team settings page
Then I click on "suazana@myorg.com" action button within Team members table
And I click "Normal user" link within "suazana@myorg.com" actions dropdown within Team members table
Then I should see "Normal user" in Role column of "suazana@myorg.com" within Team members table
@javascript
Scenario: Successfully changes user role
Given I'm on "BioSistemika Process" team settings page
Then I click on "marija@myorg.com" action button within Team members table
And I click "Administrator" link within "marija@myorg.com" actions dropdown within Team members table
Then I should see "Administrator" in Role column of "marija@myorg.com" within Team members table
@javascript
Scenario: Successfully removes user
Given I'm on "BioSistemika Process" team settings page
Then I click on "suazana@myorg.com" action button within Team members table
And I click "Remove" link within "suazana@myorg.com" actions dropdown within Team members table
2018-01-31 19:05:45 +08:00
And I should see "Are you sure you wish to remove user Suazana Novak from team BioSistemika Process?"
2018-04-25 20:34:23 +08:00
Then I click "Remove" button
Then I should not see "suazana@myorg.com" in Team members table