More sane feature indenting. Changing it back to what it was before (dunno why i changed it in the first place :-P)
This commit is contained in:
parent
48c056c723
commit
08c0d270e0
@ -3,24 +3,24 @@ Feature: Cross Domain Authentication
|
||||
As an administrator signed in another site of mine
|
||||
I want to bypass the authentication
|
||||
|
||||
Background:
|
||||
Given I have the site: "test site" set up
|
||||
And I have the site: "another site" set up
|
||||
And I am an authenticated user
|
||||
Background:
|
||||
Given I have the site: "test site" set up
|
||||
And I have the site: "another site" set up
|
||||
And I am an authenticated user
|
||||
|
||||
Scenario: Successful authentication
|
||||
When I go to pages
|
||||
Then I should see "Locomotive test website"
|
||||
When I select "Locomotive test website #2" from "target_id"
|
||||
And I press "Switch"
|
||||
Then I should see "Cross-domain authentication"
|
||||
When I press "Go"
|
||||
Then I should see "Locomotive test website #2"
|
||||
Scenario: Successful authentication
|
||||
When I go to pages
|
||||
Then I should see "Locomotive test website"
|
||||
When I select "Locomotive test website #2" from "target_id"
|
||||
And I press "Switch"
|
||||
Then I should see "Cross-domain authentication"
|
||||
When I press "Go"
|
||||
Then I should see "Locomotive test website #2"
|
||||
|
||||
Scenario: Failed authentication because of an outdated token
|
||||
When I go to pages
|
||||
And I select "Locomotive test website #2" from "target_id"
|
||||
And I press "Switch"
|
||||
And I forget to press the button on the cross-domain notice page
|
||||
And I press "Go"
|
||||
Then I should see "You need to sign in"
|
||||
Scenario: Failed authentication because of an outdated token
|
||||
When I go to pages
|
||||
And I select "Locomotive test website #2" from "target_id"
|
||||
And I press "Switch"
|
||||
And I forget to press the button on the cross-domain notice page
|
||||
And I press "Go"
|
||||
Then I should see "You need to sign in"
|
||||
|
@ -3,19 +3,19 @@ Feature: Login
|
||||
As an administrator
|
||||
I want to log in
|
||||
|
||||
Background:
|
||||
Given I have the site: "test site" set up
|
||||
Background:
|
||||
Given I have the site: "test site" set up
|
||||
|
||||
Scenario: Successful authentication
|
||||
When I go to login
|
||||
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: Successful authentication
|
||||
When I go to login
|
||||
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 "Email" with "admin@locomotiveapp.org"
|
||||
And I fill in "Password" with ""
|
||||
And I press "Log in"
|
||||
Then I should not see "Listing pages"
|
||||
Scenario: Failed authentication
|
||||
When I go to login
|
||||
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"
|
@ -3,31 +3,31 @@ Feature: Manage Pages
|
||||
As an administrator
|
||||
I want to add/edit/delete pages of my site
|
||||
|
||||
Background:
|
||||
Given I have the site: "test site" set up
|
||||
And I am an authenticated user
|
||||
Background:
|
||||
Given I have the site: "test site" set up
|
||||
And I am an authenticated user
|
||||
|
||||
Scenario: Pages list is not accessible for non authenticated accounts
|
||||
Given I am not authenticated
|
||||
When I go to pages
|
||||
Then I should see "Log in"
|
||||
Scenario: Pages list is not accessible for non authenticated accounts
|
||||
Given I am not authenticated
|
||||
When I go to pages
|
||||
Then I should see "Log in"
|
||||
|
||||
Scenario: Creating a valid page
|
||||
When I go to pages
|
||||
And I follow "new 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 "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
|
||||
Scenario: Creating a valid page
|
||||
When I go to pages
|
||||
And I follow "new 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 "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
|
||||
|
||||
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 "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
|
||||
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 "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
|
||||
|
@ -2,40 +2,42 @@ Feature: Engine
|
||||
As a website user
|
||||
I want to be able to view someones created locomotive pages
|
||||
|
||||
Background:
|
||||
Given I have the site: "test site" set up
|
||||
Background:
|
||||
Given I have the site: "test site" set up
|
||||
|
||||
Scenario: Simple Page
|
||||
Given I have a simple page at "hello-world" with the body:
|
||||
"""
|
||||
Hello World
|
||||
"""
|
||||
When I view the rendered page at "/hello-world"
|
||||
Then the rendered output should look like:
|
||||
"""
|
||||
Hello World
|
||||
"""
|
||||
Scenario: Simple Page
|
||||
Given I have a simple page at "hello-world" with the body:
|
||||
"""
|
||||
Hello World
|
||||
"""
|
||||
When I view the rendered page at "/hello-world"
|
||||
Then the rendered output should look like:
|
||||
"""
|
||||
Hello World
|
||||
"""
|
||||
|
||||
Scenario: Page with layout
|
||||
Given a layout named "above_and_below" with the body:
|
||||
"""
|
||||
<div class="up_above"></div>
|
||||
{{ content_for_layout }}
|
||||
<div class="down_below"></div>
|
||||
"""
|
||||
|
||||
And I have a simple page at "/hello-world-with-layout" with the layout "above_and_below" and the body:
|
||||
"""
|
||||
Hello World
|
||||
"""
|
||||
|
||||
When I view the rendered page at "/hello-world-with-layout"
|
||||
Then the rendered output should look like:
|
||||
Scenario: Simple Page with layout
|
||||
Given a layout named "above_and_below" with the body:
|
||||
"""
|
||||
<div class="up_above"></div>
|
||||
Hello World
|
||||
{{ content_for_layout }}
|
||||
<div class="down_below"></div>
|
||||
"""
|
||||
|
||||
And I have a simple page at "/hello-world-with-layout" with the layout "above_and_below" and the body:
|
||||
"""
|
||||
Hello World
|
||||
"""
|
||||
|
||||
When I view the rendered page at "/hello-world-with-layout"
|
||||
Then the rendered output should look like:
|
||||
"""
|
||||
<div class="up_above"></div>
|
||||
Hello World
|
||||
<div class="down_below"></div>
|
||||
"""
|
||||
|
||||
Scenario: Layout with Parts
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user