2013-10-08 00:23:44 +02:00
|
|
|
Feature: Apply rich formatting to content
|
|
|
|
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
|
|
|
|
|
|
|
|
Background:
|
|
|
|
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
|
|
|
|
And I go to "/admin/pages"
|
|
|
|
Then I click on "About Us" in the tree
|
|
|
|
|
|
|
|
Scenario: I can control alignment of selected content
|
|
|
|
Given I select "My awesome headline" in the "Content" HTML field
|
2016-02-15 02:58:24 +01:00
|
|
|
When I press the "Align right" HTML field button
|
2013-10-08 00:23:44 +02:00
|
|
|
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
|
2018-02-09 00:18:57 +01:00
|
|
|
Then I press the "Save" button
|
2013-10-08 00:23:44 +02:00
|
|
|
Then "My awesome headline" in the "Content" HTML field should be right aligned
|
|
|
|
|
|
|
|
Scenario: I can bold selected content
|
|
|
|
Given I select "awesome" in the "Content" HTML field
|
2016-02-15 02:58:24 +01:00
|
|
|
When I press the "Bold" HTML field button
|
2013-10-08 00:23:44 +02:00
|
|
|
Then "awesome" in the "Content" HTML field should be bold
|
|
|
|
But "My" in the "Content" HTML field should not be bold
|
2018-02-09 00:18:57 +01:00
|
|
|
When I press the "Save" button
|
2013-10-08 00:23:44 +02:00
|
|
|
Then "awesome" in the "Content" HTML field should be bold
|
|
|
|
But "My" in the "Content" HTML field should not be bold
|