Sha256: ce16cccf70037a5c4c0ae0d05033687ac4a4dff1995848be5a8cfa57ff3fa612

Contents?: true

Size: 1.71 KB

Versions: 5

Compression:

Stored size: 1.71 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 email confirmed 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

5 entries across 5 versions & 1 rubygems

Version Path
saucy-0.1.9 lib/generators/saucy/features/templates/features/edit_user_permissions.feature
saucy-0.1.8 lib/generators/saucy/features/templates/features/edit_user_permissions.feature
saucy-0.1.7 lib/generators/saucy/features/templates/features/edit_user_permissions.feature
saucy-0.1.6 lib/generators/saucy/features/templates/features/edit_user_permissions.feature
saucy-0.1.5 lib/generators/saucy/features/templates/features/edit_user_permissions.feature