engine/features/engine/basic.feature

36 lines
1.0 KiB
Gherkin
Raw Normal View History

Feature: Engine
2010-08-16 22:07:54 +00:00
As a designer
I want to be able to build simple page html layouts
that render correctly to the client
Background:
Given I have the site: "test site" set up
2010-08-16 21:26:15 +00:00
Scenario: Simple Page
Given a page named "hello-world" with the template:
"""
Hello World
"""
When I view the rendered page at "/hello-world"
Then the rendered output should look like:
"""
Hello World
"""
# @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:
# """
# <div class="inline-editing" data-url="/admin/parts/XXXX" data-title="hello">Hello World</div>
# """
#
# {% block main %}Didier{% endblock %}
#
# {% block body %}{% block main %}{{ block.super }}Jacques{% endblock %}{% endblock %}
# {% block body %}Hello mister Jacques{% endblock %}