Sha256: 64dc683c73f58e373f8f3b7a231770c8e116cad2eca1ad1eb238027b3e7cf487

Contents?: true

Size: 1.69 KB

Versions: 129

Compression:

Stored size: 1.69 KB

Contents

Feature: edit permissions for a user

  As an admin,
  I can edit permissions for which users are on which projects and vice versa.

  Scenario: edit permissions for a user
    Given the following projects exists:
      | name  | account          |
      | Alpha | name: thoughtbot |
      | Beta  | name: thoughtbot |
      | Delta | name: other      |
    Given the following user exists:
      | name | email           |
      | Sam  | sam@example.com |
    And I am signed in as an admin of the "thoughtbot" account
    And "sam@example.com" is a member of the "Alpha" project
    When I go to the settings page for the "thoughtbot" account
    And I follow "Users"
    And I follow "Sam"
    Then the "Alpha" checkbox should be checked
    And the "Beta" checkbox should not be checked
    And I should not see "Delta"
    When I check "Beta"
    And I uncheck "Alpha"
    And I press "Update"
    Then I should see "Permissions updated"
    When I follow "Sam"
    Then the "Alpha" checkbox should not be checked
    And the "Beta" checkbox should be checked
    And I should not see "Delta"

  Scenario: promote a user to an admin
    Given an account exists with a name of "Test"
    And I am signed in as an admin of the "Test" account
    And an user exists with a name of "Frank"
    And the following memberships exist:
      | account    | user        | admin |
      | name: Test | name: Frank | false |
    When I go to the memberships page for the "Test" account
    And I follow "Frank"
    And I check "Admin"
    And I press "Update"
    Then I should see "Permissions updated"
    When I go to the memberships page for the "Test" account
    And I follow "Frank"
    Then the "Admin" checkbox should be checked

Version data entries

129 entries across 129 versions & 2 rubygems

Version Path
saucy-0.2.41 lib/generators/saucy/features/templates/features/edit_user_permissions.feature
saucy-0.2.40 lib/generators/saucy/features/templates/features/edit_user_permissions.feature
saucy-0.2.39 lib/generators/saucy/features/templates/features/edit_user_permissions.feature
saucy-0.2.38 lib/generators/saucy/features/templates/features/edit_user_permissions.feature
saucy-0.2.36 lib/generators/saucy/features/templates/features/edit_user_permissions.feature
saucy-0.2.35 lib/generators/saucy/features/templates/features/edit_user_permissions.feature
saucy-0.2.34 lib/generators/saucy/features/templates/features/edit_user_permissions.feature
saucy-0.2.33 lib/generators/saucy/features/templates/features/edit_user_permissions.feature
saucy-0.2.32 lib/generators/saucy/features/templates/features/edit_user_permissions.feature
saucy-0.2.31 lib/generators/saucy/features/templates/features/edit_user_permissions.feature
saucy-0.2.30 lib/generators/saucy/features/templates/features/edit_user_permissions.feature
saucy-0.2.29 lib/generators/saucy/features/templates/features/edit_user_permissions.feature
saucy-0.2.28 lib/generators/saucy/features/templates/features/edit_user_permissions.feature
saucy-0.2.27 lib/generators/saucy/features/templates/features/edit_user_permissions.feature
saucy-0.2.26 lib/generators/saucy/features/templates/features/edit_user_permissions.feature
saucy-0.2.25 lib/generators/saucy/features/templates/features/edit_user_permissions.feature
saucy-0.2.24 lib/generators/saucy/features/templates/features/edit_user_permissions.feature
saucy-0.2.21 lib/generators/saucy/features/templates/features/edit_user_permissions.feature
saucy-0.2.20 lib/generators/saucy/features/templates/features/edit_user_permissions.feature
saucy-0.2.18 lib/generators/saucy/features/templates/features/edit_user_permissions.feature