Sha256: dcebc588e3cc4dc7517826cb17f9914774d34a7eed71dd51d305363e0accce41

Contents?: true

Size: 1.84 KB

Versions: 2

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 Edit
      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

2 entries across 2 versions & 1 rubygems

Version Path
citygate-0.1.1 spec/dummy/features/users/users_admin.feature
citygate-0.1.0 spec/dummy/features/users/users_admin.feature