From 3a8833ec28d5768766b452a43350e1e9b8ccd742 Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Fri, 29 Nov 2013 14:51:46 +1300 Subject: [PATCH] Fixing broken manage-users behat test. "ADMIN group" is created by default, but assertions are checking for "Admin Group". --- tests/behat/features/manage-users.feature | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/behat/features/manage-users.feature b/tests/behat/features/manage-users.feature index 99d608d3f..a264b3653 100644 --- a/tests/behat/features/manage-users.feature +++ b/tests/behat/features/manage-users.feature @@ -5,9 +5,9 @@ Feature: Manage users So that I can control access to the CMS Background: - Given a "member" "Admin" belonging to "Admin Group" with "Email"="admin@test.com" + Given a "member" "ADMIN" belonging to "ADMIN Group" with "Email"="admin@test.com" And a "member" "Staff" belonging to "Staff Group" with "Email"="staffmember@test.com" - And the "group" "Admin Group" has permissions "Full administrative rights" + And the "group" "ADMIN group" has permissions "Full administrative rights" And I am logged in with "ADMIN" permissions And I go to "/admin/security" @@ -19,7 +19,7 @@ Feature: Manage users Scenario: I can list all users in a specific group When I click the "Groups" CMS tab # TODO Please check how performant this is - And I click "Admin Group" in the "#Root_Groups" element + And I click "ADMIN group" in the "#Root_Groups" element Then I should see "admin@test.com" in the "#Root_Members" element And I should not see "staffmember@test.com" in the "#Root_Members" element @@ -39,13 +39,13 @@ Feature: Manage users Scenario: I can edit an existing user and add him to an existing group When I click the "Users" CMS tab And I click "staffmember@test.com" in the "#Root_Users" element - And I select "Admin Group" from "Groups" + And I select "ADMIN group" from "Groups" And I press the "Save" button Then I should see a "Saved Member" message When I go to "admin/security" And I click the "Groups" CMS tab - And I click "Admin Group" in the "#Root_Groups" element + And I click "ADMIN group" in the "#Root_Groups" element Then I should see "staffmember@test.com" Scenario: I can delete an existing user @@ -53,4 +53,4 @@ Feature: Manage users And I click "staffmember@test.com" in the "#Root_Users" element And I press the "Delete" button, confirming the dialog Then I should see "admin@test.com" - And I should not see "staffmember@test.com" \ No newline at end of file + And I should not see "staffmember@test.com"