---
src/app/views/hardware_profiles/_form.haml | 4 ++--
src/app/views/hardware_profiles/show.haml | 2 +-
src/features/hardware_profile.feature | 14 +++++++-------
3 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/src/app/views/hardware_profiles/_form.haml
b/src/app/views/hardware_profiles/_form.haml
index 6c4409d..a7e6768 100644
--- a/src/app/views/hardware_profiles/_form.haml
+++ b/src/app/views/hardware_profiles/_form.haml
@@ -15,5 +15,5 @@
=hwpp_form.select("value", ["i386", "x86_64"],
{})
-else
=hwpp_form.text_field(:value)
-= hwp_form.submit 'Check Matches', :class => "submit button"
-= hwp_form.submit 'Save', :class => 'submit button'
+= hwp_form.submit 'Check Matches', :class => "submit button", :id
=> 'check_matches'
+= hwp_form.submit 'Save', :class => 'submit button', :id =>
'save_button'
diff --git a/src/app/views/hardware_profiles/show.haml
b/src/app/views/hardware_profiles/show.haml
index 4f6dc9d..b9bec40 100644
--- a/src/app/views/hardware_profiles/show.haml
+++ b/src/app/views/hardware_profiles/show.haml
@@ -4,7 +4,7 @@
#obj_actions.button-container
= link_to 'New Hardware Profile', new_hardware_profile_url, :class =>
'button primary', :id => 'new_role_button'
.button-group
- = link_to 'Edit', edit_hardware_profile_path(@hardware_profile), :class
=> 'button pill'
+ = link_to 'Edit', edit_hardware_profile_path(@hardware_profile), :class
=> 'button pill', :id => 'edit_button'
= button_to 'Delete', hardware_profile_path(@hardware_profile), :method
=> :delete, :confirm => "Are you sure you want to delete?", :class =>
'button pill danger'
%section.content-section.hardware_profile
%header
diff --git a/src/features/hardware_profile.feature
b/src/features/hardware_profile.feature
index 649905e..2df0206 100644
--- a/src/features/hardware_profile.feature
+++ b/src/features/hardware_profile.feature
@@ -85,7 +85,7 @@ Feature: Manage Pools
Scenario: Create a new Hardware Profile
Given I am on the hardware profiles page
- When I follow "New Hardware Profile"
+ When I follow "new_hardware_profile_button"
Then I should be on the new hardware profile page
When I fill in "name" with "Test Hardware Profile"
And I enter the following details for the Hardware Profile Properties
@@ -94,7 +94,7 @@ Feature: Manage Pools
| cpu | 2 | count |
| storage | 250 | GB |
| architecture | i386 | label |
- And I press "Save"
+ And I press "save_button"
Then I should be on the hardware profiles page
And I should see the following:
| Test Hardware Profile | 1740 | 2 | 250 | i386 |
@@ -120,7 +120,7 @@ Feature: Manage Pools
| cpu | 2 | count |
| storage | 300 | GB |
| architecture | i386 | label |
- And I press "Check Matches"
+ And I press "check_matches"
Then I should see the following:
| Provider | Name | Memory | CPU | Storage | Architecture |
| provider1 | m1-medium | 1740 | 2 | 500 | i386 |
@@ -132,7 +132,7 @@ Feature: Manage Pools
| m1-small | 2048 | 4 | 160 | x86_64 |
And I am on the hardware profiles page
When I follow "m1-small"
- When I follow "edit"
+ When I follow "edit_button"
Then I should be on the edit hardware profiles page
When I enter the following details for the Hardware Profile Properties
| name | value | unit |
@@ -140,7 +140,7 @@ Feature: Manage Pools
| cpu | 2 | count |
| storage | 250 | GB |
| architecture | i386 | label |
- And I press "Save"
+ And I press "save_button"
Then I should be on the hardware profiles page
Then I should see the following:
| Name | Memory | CPU | Storage | Architecture |
@@ -148,7 +148,7 @@ Feature: Manage Pools
Scenario: validate hwp inputs
Given I am on the hardware profiles page
- When I follow "New Hardware Profile"
+ When I follow "new_hardware_profile_button"
Then I should be on the new hardware profile page
When I fill in "name" with "Test Hardware Profile"
And I enter the following details for the Hardware Profile Properties
@@ -157,5 +157,5 @@ Feature: Manage Pools
| cpu | no | count |
| storage | ? | GB |
| architecture | | label |
- And I press "Save"
+ And I press "save_button"
Then I should see "errors prohibited this hardware profile from being
saved"
--
1.7.4.4