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 Scenario: Simple Page Given a simple page named "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 with layout Given a layout named "above_and_below" with the source: """
{{ content_for_layout }} """ And a page named "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: """
Hello World """ Scenario: Page with Parts Given a layout named "layout_with_sidebar" with the source: """
{{ content_for_layout }}
""" And a page named "hello-world-multipart" with the layout "layout_with_sidebar" and the body: """ IM IN UR BODY OUTPUTTING SUM CODEZ!! """ And the page named "hello-world-multipart" has the part "sidebar" with the content: """ IM IN UR SIDEBAR PUTTING OUT LINKZ """ When I view the rendered page at "/hello-world-multipart" Then the rendered output should look like: """
IM IN UR BODY OUTPUTTING SUM CODEZ!!
""" @wip Scenario: Simple Page with Admin Inline Editing Given a simple page named "hello-world-inline" with the body: """ {% block hello %}Hello World{% endblock %} """ When And I'm an admin And I view the rendered page at "/hello-world-inline" Then the rendered output shoud look like: """
Hello World
"""