File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed
Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ Feature: Insert a paragraph before or after a paragraph
44 I need a way to insert a paragraph relative to another paragraph
55
66
7- @wip
87 Scenario : Add a new paragraph above an existing paragraph
98 Given a document containing three paragraphs
109 When I insert a paragraph above the second paragraph
Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ def then_the_paragraph_has_the_text_I_set(context):
152152@then ('the style of the second paragraph matches the style I set' )
153153def then_the_style_of_the_second_paragraph_matches_the_style_I_set (context ):
154154 second_paragraph = context .document .paragraphs [1 ]
155- assert second_paragraph .style == 'Heading1 '
155+ assert second_paragraph .style . name == 'Heading 1 '
156156
157157
158158@then ('the text of the second paragraph matches the text I set' )
You can’t perform that action at this time.
0 commit comments