Sha256: 359a5f84292a0faeac4822978f447091f0cc4a27a59463dc56af4215fb420eae

Contents?: true

Size: 1.84 KB

Versions: 3

Compression:

Stored size: 1.84 KB

Contents

Feature: Admin Users
  As an administrator on the website
  I want to see registered users listed on the backend so I can manage them

    Scenario: Going to the administration page
      Given I exist as a user
      And I am logged in
      And I am an admin
      And I am on the home page
      Then I can see Admin

    Scenario: Viewing users
      Given I exist as a user
      And I am logged in
      And I am an admin
      When I look at the list of users
      Then I should see my name
      And I should see my email

    Scenario: Viewing users without name
      Given I exist as a user
      And I am logged in
      And I am an admin
      And I do not have a name
      When I look at the list of users
      Then the element with class name should not exist
      And I should see my email

    Scenario: Viewing users without privileges
      Given I exist as a user
      And I am not logged in
      When I look at the list of users
      Then I should be redirected to the home page

    @javascript
    Scenario: Click the show user and then click the browser back button should work as expected
      Given I exist as a user
      And I am logged in
      And I am an admin
      When I look at the list of users
      And I click Show
      And I go back in history
      Then I should be redirected to the users admin page
      And I should see the name of user number 1

    @javascript
    Scenario: Editing a user should work as expected
      Given I exist as a user
      And I am logged in
      And I am an admin
      When I look at the list of users
      And I click Edit
      And I fill in 'user_first_name' with 'new first name'
      And I submit the form
      Then I should be redirected to the user admin page
      And I should see a user edit success message
      And the first_name of user number 1 should now be 'new first name'

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
citygate-0.0.9 spec/dummy/features/users/users_admin.feature
citygate-0.0.8 spec/dummy/features/users/users_admin.feature
citygate-0.0.7 spec/dummy/features/users/users_admin.feature