36 lines
1.0 KiB
Gherkin
36 lines
1.0 KiB
Gherkin
Feature: Engine
|
|
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
|
|
|
|
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 %} |