Commit 24777661 authored by Matt Glaman's avatar Matt Glaman

Merge pull request #136 from mglaman/1871678-add-admin-views

Issue #1871678: Convert People screen to use Views (like the Content …
parents 44b7cec8 deab3f40
......@@ -89,6 +89,7 @@ dependencies[] = commerce_amex
dependencies[] = menu_attributes
dependencies[] = fences
dependencies[] = title
dependencies[] = admin_views
; Install Features
dependencies[] = features
......
......@@ -1248,3 +1248,10 @@ function commerce_kickstart_update_7222() {
function commerce_kickstart_update_7223() {
registry_rebuild();
}
/**
* Enable Administration Views.
*/
function commerce_kickstart_update_7224() {
module_enable(array('admin_views'));
}
......@@ -142,6 +142,7 @@ projects[chosen][version] = 2.x-dev
projects[chosen][download][type] = git
projects[chosen][download][revision] = e7a0d22
projects[chosen][download][branch] = 7.x-2.x
projects[admin_views][version] = 1.5
; Internationalization
projects[variable][version] = 2.5
......
Feature: Manage Users
To manage user accounts
As an administrator user
I should have an improved interface
Background:
Given I am logged in as a user with the "administrator" role
Given users:
| name | mail | status | roles |
| Joe User | joe@example.com | 1 | administrator |
| Jane User| jane@example.com| 1 | authenticated user |
| Inactive | nope@example.com| 0 | authenticated user |
@api
Scenario: I can search by email
When I am on "/admin/people"
Then I fill in "E-mail" with "joe@example.com"
And I press "Apply"
Then I should see the link "Joe User"
But I should not see the link "Jane User"
@api
Scenario: I can search by username
When I am on "/admin/people"
Then I fill in "Username" with "Jane User"
And I press "Apply"
Then I should see the link "Jane User"
But I should not see the link "Joe User"
@api
Scenario: I can search by status
When I am on "/admin/people"
# Setting status 0 for "Given users" isn't actually marking blocked?
And I click "edit" in the "Inactive" row
And I select the radio button "Blocked" with the id "edit-status-0"
And I press "Save"
Then I select "No" from "Active"
And I press "Apply"
Then I should see the link "Inactive"
But I should not see the link "Joe User"
@api
Scenario: I can search by role
When I am on "/admin/people"
Then I select "administrator" from "Role"
And I press "Apply"
Then I should see the link "Joe User"
But I should not see the link "Jane User"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment