---
src/app/views/pool_families/show.haml | 2 +-
src/features/pool_family.feature | 10 +++++-----
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/app/views/pool_families/show.haml
b/src/app/views/pool_families/show.haml
index e93788b..3e08d45 100644
--- a/src/app/views/pool_families/show.haml
+++ b/src/app/views/pool_families/show.haml
@@ -5,7 +5,7 @@
= link_to 'New Pool Family', new_pool_family_url, :class => 'button
primary', :id => 'new_user_button'
.button-group
= link_to 'Edit', edit_pool_family_path(@pool_family), :class =>
'button pill'
- = button_to 'Delete', pool_family_path(@pool_family), :method =>
:delete, :confirm => "Are you sure you want to delete?", :class =>
"button pill danger"
+ = button_to 'Delete', pool_family_path(@pool_family), :method =>
:delete, :confirm => "Are you sure you want to delete?", :class =>
"button pill danger", :id => 'delete_pool_family_button'
.corner
%section.content-section.pool_family
diff --git a/src/features/pool_family.feature b/src/features/pool_family.feature
index 41ea2ac..d873c20 100644
--- a/src/features/pool_family.feature
+++ b/src/features/pool_family.feature
@@ -29,11 +29,11 @@ Feature: Pool Families
Scenario: Create a new Pool family
Given I am on the pool families page
And there is not a pool family named "testpoolfamily"
- When I follow "New Pool Family"
+ When I follow "new_pool_family_button"
Then I should be on the new pool family page
When I fill in "pool_family[name]" with "testpoolfamily"
When I fill in "pool_family[quota_attributes][maximum_running_instances]"
with "2"
- And I press "Save"
+ And I press "pool_family_submit"
Then I should be on the pool families page
And I should see "Pool family was added."
And I should have a pool family named "testpoolfamily"
@@ -43,14 +43,14 @@ Feature: Pool Families
And there is a pool family named "poolfamily1"
When I go to the pool families page
And I check "poolfamily1" pool family
- And I press "Delete"
+ And I press "delete_button"
Then there should not exist a pool family named "poolfamily1"
Scenario: Disallow deletion of default pool family
Given I am on the pool families page
Then I should see "default"
When I check "default" pool family
- And I press "Delete"
+ And I press "delete_button"
Then I should see "Could not delete the following Pool Families: default."
And I should see "default"
@@ -99,5 +99,5 @@ Feature: Pool Families
And I am on the pool family provider accounts page
Then I should see "testaccount"
When I check "testaccount" provider account
- And I press "Remove selected"
+ And I press "delete_button"
Then there should not exist a provider account assigned to
"testpoolfamily"
--
1.7.4.4