Add tests for toolbar buttons and converting links.

This commit is contained in:
cahrens
2014-03-19 19:11:35 -04:00
parent cc2fec2e1a
commit 07d54be64d
3 changed files with 62 additions and 5 deletions

View File

@@ -38,4 +38,16 @@ Feature: CMS.HTML Editor
<style><!--
.title { color: red; }
--></style>
"""
"""
Scenario: TinyMCE toolbar buttons are as expected
Given I have created a Blank HTML Page
When I edit the page
Then the expected toolbar buttons are displayed
Scenario: Static links are converted when switching between code editor and WYSIWYG views
Given I have created a Blank HTML Page
When I edit the page
And type "<img src="/static/image.jpg">" in the code editor and press OK
Then the image static link is rewritten to translate the path
And the code editor displays "<p><img src="/static/image.jpg" alt="" /></p>"