Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @wordpress
- Feature: Verify that a Composite story with Enriched Only Flag is available in the Content Repository
- # This scenario checks:
- # An enriched only story can be created by a Reporter and submitted for review.
- # An Editor can edit the story and publish it. The story is then stored in the Content Repository
- @userjourney @smoke
- Scenario: Create an Enriched story as a Reporter and approve it as an Editor
- Given I open the WP Login page
- And I log in to WordPress as the Reporter User
- And I open the WP Stories Dashboard page
- And I click on the WP Stories Dashboard page Add New Story button
- And I enter "Oscars Report" into the WP Add Story page Title field
- And I enter "This is a report about the Oscars" into the WP Add Story page Abstract field
- And I enter "Oscars Report 2018" into the WP Add Story page Body field
- And I add the "Oscars" embedded image into the WP Add Story page Body field
- And I log in to AOL CMS Video Plugin
- Then I assert that the AOL plugin has logged in
- And I enter "Oscars Awards" into the AOL Video Plugin search field
- And I select the first video available
- And I click the add to post button
- Then I assert the video embed has been inserted into the WP Add Story page Body field
- And I enter my social post from "Facebook" into the WP Add Story page Body field
- And I enter my social post from "Twitter" into the WP Add Story page Body field
- And I enter my social post from "Instagram" into the WP Add Story page Body field
- And I enter "Mike" into the WP Add Story page Replacement Byline field
- And I add the tag "e2e" into the WP Add Story page Tags
- And I select "story" from the WP Add Story page Post Type dropdown
- And I click on the "Composite" WP Add Story page Format option button
- And I select the "Enriched-only" option from the WP Add Story Content Type field
- And I click the Set Featured Images Button
- And I enter "Oscars" into the WP Images API Search Field
- And I select the first image available
- And I click the Featured Image edit button
- And I click on the image to define a point of interest
- And I click the Save & Set as Featured Image button
- Then I assert I am on the WP Edit Story page
- And I assert that the Featured Image is "visible" on the WP Add Story page
- And I select "Entertainment" from the WP Add Story page Services dropdown
- And I select "Entertainment:TV" from the WP Add Story page Sub-Services dropdown
- And I select "Media" from the WP Add Story page Topics dropdown
- And I add the keyword "Oscars" into the WP Add Story page Keywords
- And I click on the WP Add Story page Submit For Review button
- And I accept the alert
- Then I assert I am on the WP Add Story page
- And I click on the WP Log Out button
- And I retrieve the WP API Authenticated Story Item
- Then I assert the WP API Item response contains a node "status" with value "pending"
- When I retrieve the Content Repo Story Item
- And I assert the Content Repo response is empty
- Given I log in to WordPress as the Editor User
- When I open the WP Edit Story page
- And I enter " Editor change" into the WP Add Story page Body field
- And I select the "Enriched-only" option from the WP Add Story Content Type field
- And I click the Set Featured Images Button
- And I enter "Movies" into the WP Images API Search Field
- And I select the first image available
- And I click the Featured Image edit button
- And I click on the image to define a point of interest
- And I click the Save & Set as Featured Image button
- Then I assert I am on the WP Edit Story page
- And I assert that the Featured Image is "visible" on the WP Add Story page
- And I enter my social post from "Facebook" into the WP Add Story page Body field
- And I click on the WP Add Story page Publish button
- And I accept the alert
- Then I assert I am on the WP Stories Dashboard page
- And I retrieve the WP API Story Item
- Then I assert the WP API Item response contains a node "status" with value "publish"
- When I retrieve the Content Repo Story Item
- Then I assert the Content Repo publication status is "usable"
- Then I assert the Content Repo title is "Oscars Report"
- Then I assert the Content Repo abstract is "This is a report about the Oscars"
- Then I assert the Content Repo body is "Oscars Report 2018 Editor change"
- Then I assert the Content Repo byline is "Mike"
- Then I assert the Content Repo post type is "story-enriched"
- Then I assert the Content Repo format is "composite"
- Then I assert the Content Repo subject array contains the service "Entertainment"
- Then I assert the Content Repo subject array contains the subservice "Entertainment:UK"
- Then I assert the Content Repo subject array contains the topic "Showbiz"
- Then I assert the Content Repo subject array contains the keyword "Oscars"
- Then I assert the Content Repo subject array contains the territory "UK"
- Then I assert the Content Repo object array contains the content "paservice:news.story.composite"
- Then I assert the Content Repo object array contains the content "paservice:news.story.composite"
- # This scenario checks:
- # An enriched story can be created by an Editor and is saved to content repo
- # A published story can be killed and is removed from content repo
- @userjourney @smoke
- Scenario: Create an Enriched story as an Editor
- Given I open the WP Login page
- And I log in to WordPress as the Editor User User
- And I open the WP Stories Dashboard page
- And I click on the WP Stories Dashboard page Add New Story button
- And I enter "Editor Football Report" into the WP Add Story page Title field
- And I enter "Editor This is a report about Real Madrid" into the WP Add Story page Abstract field
- And I enter " Editor Real Madrid Football Report" into the WP Add Story page Body field
- And I add the "FC Barcelona" embedded image into the WP Add Story page Body field
- And I log in to AOL CMS Video Plugin
- Then I assert that the AOL plugin has logged in
- And I enter "Oscars Awards" into the AOL Video Plugin search field
- And I select the first video available
- And I click the add to post button
- Then I assert the video embed has been inserted into the WP Add Story page Body field
- And I enter my social post from "Facebook" into the WP Add Story page Body field
- And I enter my social post from "Twitter" into the WP Add Story page Body field
- And I enter my social post from "Instagram" into the WP Add Story page Body field
- And I enter "Editor Mike" into the WP Add Story page Replacement Byline field
- And I add the tag "e2e" into the WP Add Story page Tags
- And I select "story" from the WP Add Story page Post Type dropdown
- And I click on the "Composite" WP Add Story page Format option button
- And I select the "Enriched-only" option from the WP Add Story Content Type field
- And I click the Set Featured Images Button
- And I enter "Real Madrid" into the WP Images API Search Field
- And I select the first image available
- And I click the Featured Image edit button
- And I click on the image to define a point of interest
- And I click the Save & Set as Featured Image button
- Then I assert I am on the WP Edit Story page
- And I assert that the Featured Image is "visible" on the WP Add Story page
- And I select "Sport" from the WP Add Story page Services dropdown
- And I select "Sport:Football" from the WP Add Story page Sub-Services dropdown
- And I select "Soccer" from the WP Add Story page Topics dropdown
- And I add the keyword "Real Madrid" into the WP Add Story page Keywords
- And I click on the WP Add Story page Publish button
- And I accept the alert
- Then I assert I am on the WP Edit Story page
- And I retrieve the WP API Story Item
- Then I assert the WP API Item response contains a node "status" with value "publish"
- When I retrieve the Content Repo Story Item
- Then I assert the Content Repo publication status is "usable"
- Then I assert the Content Repo title is "Editor Football Report"
- Then I assert the Content Repo abstract is "Editor This is a report about Barcelona FC"
- Then I assert the Content Repo body is "Editor Barcelona Football Report"
- Then I assert the Content Repo byline is "Editor Mike"
- Then I assert the Content Repo post type is "story-enriched"
- Then I assert the Content Repo format is "composite"
- Then I assert the Content Repo subject array contains the service "Sport"
- Then I assert the Content Repo subject array contains the subservice "Sport:Football"
- Then I assert the Content Repo subject array contains the topic "Soccer"
- Then I assert the Content Repo subject array contains the keyword "Real Madrid"
- Then I assert the Content Repo subject array contains the territory "UK"
- Then I assert the Content Repo object array contains the content "paservice:sport:story.composite"
- Then I assert the Content Repo object array contains the content "paservice:sport:football.story.composite"
- When I open the WP Edit Story page
- And I click on the WP Edit Story page Kill button
- And I accept the alert
- And I retrieve the WP API Story Item
- Then I assert the WP API Item response contains a node "status" with value "kill"
- When I retrieve the Content Repo Story Item
- Then I assert the Content Repo response is empty
- # This scenario checks:
- # An enriched story can be created by an Admin and is saved to content repo
- @userjourney @smoke
- Scenario: Create an Enriched story as an Admin
- Given I open the WP Login page
- And I log in to WordPress as the Admin User
- And I open the WP Stories Dashboard page
- And I click on the WP Stories Dashboard page Add New Story button
- And I enter "Football Report" into the WP Add Story page Title field
- And I enter "This is a report about Barcelona FC" into the WP Add Story page Abstract field
- And I enter "Barcelona Football Report" into the WP Add Story page Body field
- And I add the "FC Barcelona" embedded image into the WP Add Story page Body field
- And I log in to AOL CMS Video Plugin
- Then I assert that the AOL plugin has logged in
- And I enter "Oscars Awards" into the AOL Video Plugin search field
- And I select the first video available
- And I click the add to post button
- Then I assert the video embed has been inserted into the WP Add Story page Body field
- And I enter my social post from "Facebook" into the WP Add Story page Body field
- And I enter my social post from "Twitter" into the WP Add Story page Body field
- And I enter my social post from "Instagram" into the WP Add Story page Body field
- And I enter "Mike" into the WP Add Story page Replacement Byline field
- And I add the tag "e2e" into the WP Add Story page Tags
- And I select "story" from the WP Add Story page Post Type dropdown
- And I click on the "Composite" WP Add Story page Format option button
- And I select the "Enriched-only" option from the WP Add Story Content Type field
- And I click the Set Featured Images Button
- And I enter "FC Barcelona" into the WP Images API Search Field
- And I select the first image available
- And I click the Featured Image edit button
- And I click on the image to define a point of interest
- And I click the Save & Set as Featured Image button
- Then I assert I am on the WP Edit Story page
- And I assert that the Featured Image is "visible" on the WP Add Story page
- And I select "Sport" from the WP Add Story page Services dropdown
- And I select "Sport:Football" from the WP Add Story page Sub-Services dropdown
- And I select "Soccer" from the WP Add Story page Topics dropdown
- And I add the keyword "Barcelona" into the WP Add Story page Keywords
- And I click on the WP Add Story page Publish button
- And I accept the alert
- Then I assert I am on the WP Edit Story page
- And I retrieve the WP API Story Item
- Then I assert the WP API Item response contains a node "status" with value "publish"
- When I retrieve the Content Repo Story Item
- Then I assert the Content Repo publication status is "usable"
- Then I assert the Content Repo title is "Football Report"
- Then I assert the Content Repo abstract is "This is a report about Barcelona FC"
- Then I assert the Content Repo body is "Barcelona Football Report"
- Then I assert the Content Repo byline is "Mike"
- Then I assert the Content Repo post type is "story-enriched"
- Then I assert the Content Repo format is "composite"
- Then I assert the Content Repo subject array contains the service "Sport"
- Then I assert the Content Repo subject array contains the subservice "Sport:Football"
- Then I assert the Content Repo subject array contains the topic "Soccer"
- Then I assert the Content Repo subject array contains the keyword "Barcelona"
- Then I assert the Content Repo subject array contains the territory "UK"
- Then I assert the Content Repo object array contains the content "paservice:sport:story.composite"
- Then I assert the Content Repo object array contains the content "paservice:sport:football.story.composite"
Add Comment
Please, Sign In to add comment