2013-09-02 04:11:47 +02:00
|
|
|
@todo
|
|
|
|
Feature: Apply rich formatting to content
|
2013-09-13 18:42:27 +02:00
|
|
|
As a cms author
|
|
|
|
I want to work with content in the way I'm used to from word processing software
|
|
|
|
So that I make it more appealing by creating structure and highlights
|
2013-09-02 04:11:47 +02:00
|
|
|
|
2013-09-13 18:42:27 +02:00
|
|
|
Background:
|
|
|
|
Given a "page" "About Us"
|
|
|
|
Given I am logged in with "ADMIN" permissions
|
|
|
|
Given "About Us" has the Content
|
|
|
|
"""<h1>My awesome headline</1>
|
|
|
|
<p>Some amazing content</p>"""
|
|
|
|
And I go to "/admin/pages"
|
2013-09-14 00:20:22 +02:00
|
|
|
Then I click on "About Us" in the tree
|
2013-09-13 18:42:27 +02:00
|
|
|
And I focus the "Content" field
|
2013-09-02 04:11:47 +02:00
|
|
|
|
2013-09-13 18:42:27 +02:00
|
|
|
Scenario: I can control alignment of selected content
|
|
|
|
Given I highlight the content "My awesome headline"
|
|
|
|
When I press the "Align Right" button in the HTML editor
|
|
|
|
Then the content "My awesome headline" should be right aligned
|
|
|
|
But the content "Some amazing content" should be left aligned
|
|
|
|
Then I press the "Save draft" button in the HTML editor
|
|
|
|
Then the content "My awesome headline" should still be right aligned
|
2013-09-02 04:11:47 +02:00
|
|
|
|
2013-09-13 18:42:27 +02:00
|
|
|
Scenario: I can bold selected content
|
|
|
|
Given I highlight the content "awesome"
|
|
|
|
When I press the "Bold" button in the HTML editor
|
|
|
|
Then the content "awesome" should be bold
|
|
|
|
But the content "My" should not be bold
|
|
|
|
When I press the "Save draft" button in the HTML editor
|
|
|
|
Then the content "awesome" should still be bold
|
|
|
|
But the content "My" should still not be bold
|
|
|
|
|