Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 740795425d
Fetching contributors…

Cannot retrieve contributors at this time

40 lines (29 sloc) 1.099 kB
@works
Feature: Parsing HTML
# tests for parsing only are in spec/lib/html_cleaner_spec.rb
Scenario: Editing a work and saving it without changes should preserve the same content
When I am logged in as "newbie" with password "password"
And I set up the draft "My Awesome Story"
And I fill in "content" with
"""
This is paragraph 1.
This is paragraph 2.
"""
And I press "Preview"
Then I should see "Preview"
And I should see the text with tags "<p>This is paragraph 1.</p><p>This is paragraph 2.</p>"
When I press "Post"
And I follow "Edit"
And I press "Preview"
Then I should see the text with tags "<p>This is paragraph 1.</p><p>This is paragraph 2.</p>"
Scenario: HTML Parser should kick in
When I am logged in as "newbie" with password "password"
And I set up the draft "My Awesome Story"
And I fill in "content" with
"""
A paragraph
Another paragraph.
"""
And I press "Preview"
Then I should see "Preview"
And I should see the text with tags "<p>A paragraph</p><p>Another paragraph.</p>"
Jump to Line
Something went wrong with that request. Please try again.