Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
(medley_behave)-bash-4.1$ medley_behave /vagrant/medley_behave/features/story_features/story_highlights.feature
Feature: As a producer, I need the ability to add story highlights to a story # features/story_featu res/story_highlights.feature:3
@story @story_highlights @jp2
Scenario: Create and capture the story highlights content to a story. # features/story_features/story_highlights.feature:7
Given I am logged on to the JP2 site admin # features/steps/admin.py:56 33.590s
When I create a "medley story" with the following options # features/steps/generic_content.py:429 356.219s
| Key | Value |
| headline | "This is my Automation story {uuid}" |
| subhead | "This is a test of the subhead field on automation story" |
| bylines | "Kirk Mellish,Benji Brown" |
| one_off_byline | "OneOffByline" |
| source | "Cox Media Group" |
| story | "This is my automation story text" |
| primary_category | 209 |
And I create highlights with the following info # features/steps/stories.py:508 12.561s
| Order | Highlight |
| common-highlight-content_type-object_id-0-order | 1 |
| common-highlight-content_type-object_id-1-order | 2 |
| common-highlight-content_type-object_id-2-order | 3 |
| common-highlight-content_type-object_id-3-order | 4 |
| common-highlight-content_type-object_id-0-highlight | "Hello, how are you?" |
| common-highlight-content_type-object_id-1-highlight | "I'm good, thank you." |
| common-highlight-content_type-object_id-2-highlight | "What are you reading?" |
| common-highlight-content_type-object_id-3-highlight | "Super automation story" |
And I save and continue # features/steps/admin.py:126 50.792s
And I view on site # features/steps/admin.py:68 118.141s
Then I should see the text "This is not my Automation story" somewhere on the page # features/steps/basic.py:70 26.625s
Assertion Failed: Page source did not contain 'This is not my Automation story'
Captured stderr:
/opt/medley_behave/lib/python2.6/site-packages/selenium/webdriver/remote/webdriver.py:505: DeprecationWarning: use driver.switch_to.frame instead
warnings.warn("use driver.switch_to.frame instead", DeprecationWarning)
And I should see the text "STORY HIGHLIGHTS" somewhere on the page # None
And I see "Hello, how are you?" in element with the class "cm-story-highlights" # None
And I see "I'm good, thank you" in element with the class "cm-story-highlights" # None
And I see "What are you reading?" in element with the class "cm-story-highlights" # None
And I see "Super automation story" in the correct order # None
And I see the share icons - facebook and twitter # None
@story @story_highlights @jp2
When I create a "medley story" with the following options # features/steps/admin.py:56 31.245slights.feature:40 ps/generic_content.py:429 409.148s with the following options # features/steps/generic_content.py:429
| Key | Value |
| headline | "This is my Automation story {uuid}" |
| subhead | "This is a test of the subhead field on automation story" |
| bylines | "Kirk Mellish,Benji Brown" |
| one_off_byline | "OneOffByline" |
| source | "Cox Media Group" |
| story | "This is my automation story text" |
| primary_category | 209 |
And I create highlights with the following info # features/ste ps/stories.py:508 14.885s
| Order | Highlight |
| common-highlight-content_type-object_id-0-order | 1 |
| common-highlight-content_type-object_id-1-order | 2 |
| common-highlight-content_type-object_id-2-order | 3 |
| common-highlight-content_type-object_id-3-order | 4 |
| common-highlight-content_type-object_id-0-highlight | "Hello, how are you?" |
| common-highlight-content_type-object_id-1-highlight | "I'm good, thank you." |
| common-highlight-content_type-object_id-2-highlight | "What are you reading?" |
| common-highlight-content_type-object_id-3-highlight | "Super automation story" |
And I save and continue # features/steps/admin.py:126 53.362s
And I select the Delete check box for highlight Order 4 # features/steps/stories.py:537 8.134s
And I save and continue # features/steps/admin.py:126 46.327s
And I see "I'm good, thank you" in element with the class "cm-story-highlights" # features/steps/basic.py:112 31.631sps/basic.py:112 32.396s, thank you" in element with the class "cm-story-highlights" # features/steps/basic.py:112
And I see "What are you reading?" in element with the class "cm-story-highlights" # features/steps/basic.py:112 31.508s
But I should not see the text "Super automation story" anywhere on the page # features/steps/basic.py:65 14.147s
Failing scenarios:
features/story_features/story_highlights.feature:7 Create and capture the story highlights content to a story.
0 features passed, 1 failed, 0 skipped
1 scenario passed, 1 failed, 0 skipped
18 steps passed, 1 failed, 6 skipped, 0 undefined
Took 24m44.879s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment