silverstripe-cms/tests/behat/features/apply-formatting.feature

29 lines
1.4 KiB
Gherkin
Raw Normal View History

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>"
Given the "group" "EDITOR" has permissions "Access to 'Pages' section"
And I am logged in as a member of "EDITOR" group
2013-10-08 00:23:44 +02:00
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
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
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