engine/features/engine/inline_front_end_editing.fe...

27 lines
833 B
Gherkin
Raw Normal View History

@javascript
Feature: Engine
As an author
In order to easily be able to modify the contents of my website
I want to be able to edit the sites content on the front end
Background:
Given I have the site: "test site" set up
And I am an authenticated "author"
Scenario: Editing a short text field
Given a page named "about" with the template:
"""
<html>
<head>{% inline_editor %}</head>
<body>{% editable_short_text 'a_sentence' %} owns this website{% endeditable_short_text %}</body>
</html>
"""
When I view the rendered page at "/about"
Then I should see "edit"
When I follow "edit"
And I type the content "Mario" into the first editable short field
And I press "save"
When I view the rendered page at "/about"
Then I should see "Mario owns this website"