Tweak features to use labels
This commit is contained in:
parent
aa459095af
commit
5d8a0819e9
@ -33,6 +33,7 @@
|
||||
%ul{ :id => "parts" }
|
||||
= f.fields_for :parts do |g|
|
||||
%li{ :style => "#{'display: none' if g.object.disabled?}" }
|
||||
= g.label :value, g.object.name, :style => "display:none"
|
||||
%code= g.text_area :value
|
||||
= g.hidden_field :name
|
||||
= g.hidden_field :slug
|
||||
|
@ -6,14 +6,14 @@ Feature: Login
|
||||
|
||||
Scenario: Successful authentication
|
||||
When I go to login
|
||||
And I fill in "admin_email" with "admin@locomotiveapp.org"
|
||||
And I fill in "admin_password" with "easyone"
|
||||
And I fill in "Email" with "admin@locomotiveapp.org"
|
||||
And I fill in "Password" with "easyone"
|
||||
And I press "Log in"
|
||||
Then I should see "Listing pages"
|
||||
|
||||
Scenario: Failed authentication
|
||||
When I go to login
|
||||
And I fill in "admin_email" with "admin@locomotiveapp.org"
|
||||
And I fill in "admin_password" with ""
|
||||
And I fill in "Email" with "admin@locomotiveapp.org"
|
||||
And I fill in "Password" with ""
|
||||
And I press "Log in"
|
||||
Then I should not see "Listing pages"
|
@ -16,7 +16,7 @@ Scenario: Creating a valid page
|
||||
And I fill in "Title" with "Test"
|
||||
And I fill in "Slug" with "test"
|
||||
And I select "Home page" from "Parent"
|
||||
And I fill in "page_parts_attributes_0_value" with "Lorem ipsum...."
|
||||
And I fill in "Body" with "Lorem ipsum...."
|
||||
And I press "Create"
|
||||
Then I should see "Page was successfully created."
|
||||
And I should have "Lorem ipsum...." in the test page layout
|
||||
@ -25,7 +25,7 @@ Scenario: Updating a valid page
|
||||
When I go to pages
|
||||
And I follow "Home page"
|
||||
And I fill in "Title" with "Home page !"
|
||||
And I fill in "page_parts_attributes_0_value" with "My new content is here"
|
||||
And I fill in "Body" with "My new content is here"
|
||||
And I press "Update"
|
||||
Then I should see "Page was successfully updated."
|
||||
And I should have "My new content is here" in the index page layout
|
Loading…
Reference in New Issue
Block a user