2013-09-02 04:11:47 +02:00
|
|
|
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:
|
2013-09-15 01:50:10 +02:00
|
|
|
Given a "page" "About Us" has the "Content" "<h1>My awesome headline</h1><p>Some amazing content</p>"
|
|
|
|
And I am logged in with "ADMIN" permissions
|
2013-09-13 18:42:27 +02:00
|
|
|
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-02 04:11:47 +02:00
|
|
|
|
2013-09-13 18:42:27 +02:00
|
|
|
Scenario: I can control alignment of selected content
|
2013-09-15 01:50:10 +02:00
|
|
|
Given I select "My awesome headline" in the "Content" HTML field
|
|
|
|
When I press the "Align Right" button
|
|
|
|
Then "My awesome headline" in the "Content" HTML field should be right aligned
|
|
|
|
But "Some amazing content" in the "Content" HTML field should be left aligned
|
|
|
|
Then I press the "Save draft" button
|
|
|
|
Then "My awesome headline" in the "Content" HTML field should 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
|
2013-09-15 01:50:10 +02:00
|
|
|
Given I select "awesome" in the "Content" HTML field
|
|
|
|
When I press the "Bold (Ctrl+B)" button
|
|
|
|
Then "awesome" in the "Content" HTML field should be bold
|
|
|
|
But "My" in the "Content" HTML field should not be bold
|
|
|
|
When I press the "Save draft" button
|
|
|
|
Then "awesome" in the "Content" HTML field should be bold
|
|
|
|
But "My" in the "Content" HTML field should not be bold
|
2013-09-13 18:42:27 +02:00
|
|
|
|