daily pastebin goal
7%
SHARE
TWEET

Untitled

a guest Jun 13th, 2018 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @wordpress
  2. Feature: Verify that a Composite story with Enriched Only Flag is available in the Content Repository
  3.  
  4.   # This scenario checks:
  5.   # An enriched only story can be created by a Reporter and submitted for review.
  6.   # An Editor can edit the story and publish it. The story is then stored in the Content Repository
  7.   @userjourney @smoke
  8.   Scenario: Create an Enriched story as a Reporter and approve it as an Editor
  9.     Given I open the WP Login page
  10.     And I log in to WordPress as the Reporter User
  11.     And I open the WP Stories Dashboard page
  12.     And I click on the WP Stories Dashboard page Add New Story button
  13.     And I enter "Oscars Report" into the WP Add Story page Title field
  14.     And I enter "This is a report about the Oscars" into the WP Add Story page Abstract field
  15.     And I enter "Oscars Report 2018" into the WP Add Story page Body field
  16.     And I add the "Oscars" embedded image into the WP Add Story page Body field
  17.     And I log in to AOL CMS Video Plugin
  18.     Then I assert that the AOL plugin has logged in
  19.     And I enter "Oscars Awards" into the AOL Video Plugin search field
  20.     And I select the first video available
  21.     And I click the add to post button
  22.     Then I assert the video embed has been inserted into the WP Add Story page Body field
  23.     And I enter my social post from "Facebook" into the WP Add Story page Body field
  24.     And I enter my social post from "Twitter" into the WP Add Story page Body field
  25.     And I enter my social post from "Instagram" into the WP Add Story page Body field
  26.     And I enter "Mike" into the WP Add Story page Replacement Byline field
  27.     And I add the tag "e2e" into the WP Add Story page Tags
  28.     And I select "story" from the WP Add Story page Post Type dropdown
  29.     And I click on the "Composite" WP Add Story page Format option button
  30.     And I select the "Enriched-only" option from the WP Add Story Content Type field
  31.     And I click the Set Featured Images Button
  32.     And I enter "Oscars" into the WP Images API Search Field
  33.     And I select the first image available
  34.     And I click the Featured Image edit button
  35.     And I click on the image to define a point of interest
  36.     And I click the Save & Set as Featured Image button
  37.     Then I assert I am on the WP Edit Story page
  38.     And I assert that the Featured Image is "visible" on the WP Add Story page
  39.     And I select "Entertainment" from the WP Add Story page Services dropdown
  40.     And I select "Entertainment:TV" from the WP Add Story page Sub-Services dropdown
  41.     And I select "Media" from the WP Add Story page Topics dropdown
  42.     And I add the keyword "Oscars" into the WP Add Story page Keywords
  43.     And I click on the WP Add Story page Submit For Review button
  44.     And I accept the alert
  45.     Then I assert I am on the WP Add Story page
  46.     And I click on the WP Log Out button
  47.     And I retrieve the WP API Authenticated Story Item
  48.     Then I assert the WP API Item response contains a node "status" with value "pending"
  49.     When I retrieve the Content Repo Story Item
  50.     And I assert the Content Repo response is empty
  51.     Given I log in to WordPress as the Editor User
  52.     When I open the WP Edit Story page
  53.     And I enter " Editor change" into the WP Add Story page Body field
  54.     And I select the "Enriched-only" option from the WP Add Story Content Type field
  55.     And I click the Set Featured Images Button
  56.     And I enter "Movies" into the WP Images API Search Field
  57.     And I select the first image available
  58.     And I click the Featured Image edit button
  59.     And I click on the image to define a point of interest
  60.     And I click the Save & Set as Featured Image button
  61.     Then I assert I am on the WP Edit Story page
  62.     And I assert that the Featured Image is "visible" on the WP Add Story page
  63.     And I enter my social post from "Facebook" into the WP Add Story page Body field
  64.     And I click on the WP Add Story page Publish button
  65.     And I accept the alert
  66.     Then I assert I am on the WP Stories Dashboard page
  67.     And I retrieve the WP API Story Item
  68.     Then I assert the WP API Item response contains a node "status" with value "publish"
  69.     When I retrieve the Content Repo Story Item
  70.     Then I assert the Content Repo publication status is "usable"
  71.     Then I assert the Content Repo title is "Oscars Report"
  72.     Then I assert the Content Repo abstract is "This is a report about the Oscars"
  73.     Then I assert the Content Repo body is "Oscars Report 2018 Editor change"
  74.     Then I assert the Content Repo byline is "Mike"
  75.     Then I assert the Content Repo post type is "story-enriched"
  76.     Then I assert the Content Repo format is "composite"
  77.     Then I assert the Content Repo subject array contains the service "Entertainment"
  78.     Then I assert the Content Repo subject array contains the subservice "Entertainment:UK"
  79.     Then I assert the Content Repo subject array contains the topic "Showbiz"
  80.     Then I assert the Content Repo subject array contains the keyword "Oscars"
  81.     Then I assert the Content Repo subject array contains the territory "UK"
  82.     Then I assert the Content Repo object array contains the content "paservice:news.story.composite"
  83.     Then I assert the Content Repo object array contains the content "paservice:news.story.composite"
  84.  
  85.     # This scenario checks:
  86.     # An enriched story can be created by an Editor and is saved to content repo
  87.     # A published story can be killed and is removed from content repo
  88.   @userjourney @smoke
  89.   Scenario: Create an Enriched story as an Editor
  90.     Given I open the WP Login page
  91.     And I log in to WordPress as the Editor User User
  92.     And I open the WP Stories Dashboard page
  93.     And I click on the WP Stories Dashboard page Add New Story button
  94.     And I enter "Editor Football Report" into the WP Add Story page Title field
  95.     And I enter "Editor This is a report about Real Madrid" into the WP Add Story page Abstract field
  96.     And I enter " Editor Real Madrid Football Report" into the WP Add Story page Body field
  97.     And I add the "FC Barcelona" embedded image into the WP Add Story page Body field
  98.     And I log in to AOL CMS Video Plugin
  99.     Then I assert that the AOL plugin has logged in
  100.     And I enter "Oscars Awards" into the AOL Video Plugin search field
  101.     And I select the first video available
  102.     And I click the add to post button
  103.     Then I assert the video embed has been inserted into the WP Add Story page Body field
  104.     And I enter my social post from "Facebook" into the WP Add Story page Body field
  105.     And I enter my social post from "Twitter" into the WP Add Story page Body field
  106.     And I enter my social post from "Instagram" into the WP Add Story page Body field
  107.     And I enter "Editor Mike" into the WP Add Story page Replacement Byline field
  108.     And I add the tag "e2e" into the WP Add Story page Tags
  109.     And I select "story" from the WP Add Story page Post Type dropdown
  110.     And I click on the "Composite" WP Add Story page Format option button
  111.     And I select the "Enriched-only" option from the WP Add Story Content Type field
  112.     And I click the Set Featured Images Button
  113.     And I enter "Real Madrid" into the WP Images API Search Field
  114.     And I select the first image available
  115.     And I click the Featured Image edit button
  116.     And I click on the image to define a point of interest
  117.     And I click the Save & Set as Featured Image button
  118.     Then I assert I am on the WP Edit Story page
  119.     And I assert that the Featured Image is "visible" on the WP Add Story page
  120.     And I select "Sport" from the WP Add Story page Services dropdown
  121.     And I select "Sport:Football" from the WP Add Story page Sub-Services dropdown
  122.     And I select "Soccer" from the WP Add Story page Topics dropdown
  123.     And I add the keyword "Real Madrid" into the WP Add Story page Keywords
  124.     And I click on the WP Add Story page Publish button
  125.     And I accept the alert
  126.     Then I assert I am on the WP Edit Story page
  127.     And I retrieve the WP API Story Item
  128.     Then I assert the WP API Item response contains a node "status" with value "publish"
  129.     When I retrieve the Content Repo Story Item
  130.     Then I assert the Content Repo publication status is "usable"
  131.     Then I assert the Content Repo title is "Editor Football Report"
  132.     Then I assert the Content Repo abstract is "Editor This is a report about Barcelona FC"
  133.     Then I assert the Content Repo body is "Editor Barcelona Football Report"
  134.     Then I assert the Content Repo byline is "Editor Mike"
  135.     Then I assert the Content Repo post type is "story-enriched"
  136.     Then I assert the Content Repo format is "composite"
  137.     Then I assert the Content Repo subject array contains the service "Sport"
  138.     Then I assert the Content Repo subject array contains the subservice "Sport:Football"
  139.     Then I assert the Content Repo subject array contains the topic "Soccer"
  140.     Then I assert the Content Repo subject array contains the keyword "Real Madrid"
  141.     Then I assert the Content Repo subject array contains the territory "UK"
  142.     Then I assert the Content Repo object array contains the content "paservice:sport:story.composite"
  143.     Then I assert the Content Repo object array contains the content "paservice:sport:football.story.composite"
  144.     When I open the WP Edit Story page
  145.     And I click on the WP Edit Story page Kill button
  146.     And I accept the alert
  147.     And I retrieve the WP API Story Item
  148.     Then I assert the WP API Item response contains a node "status" with value "kill"
  149.     When I retrieve the Content Repo Story Item
  150.     Then I assert the Content Repo response is empty
  151.  
  152.     # This scenario checks:
  153.     # An enriched story can be created by an Admin and is saved to content repo
  154.   @userjourney @smoke
  155.   Scenario: Create an Enriched story as an Admin
  156.     Given I open the WP Login page
  157.     And I log in to WordPress as the Admin User
  158.     And I open the WP Stories Dashboard page
  159.     And I click on the WP Stories Dashboard page Add New Story button
  160.     And I enter "Football Report" into the WP Add Story page Title field
  161.     And I enter "This is a report about Barcelona FC" into the WP Add Story page Abstract field
  162.     And I enter "Barcelona Football Report" into the WP Add Story page Body field
  163.     And I add the "FC Barcelona" embedded image into the WP Add Story page Body field
  164.     And I log in to AOL CMS Video Plugin
  165.     Then I assert that the AOL plugin has logged in
  166.     And I enter "Oscars Awards" into the AOL Video Plugin search field
  167.     And I select the first video available
  168.     And I click the add to post button
  169.     Then I assert the video embed has been inserted into the WP Add Story page Body field
  170.     And I enter my social post from "Facebook" into the WP Add Story page Body field
  171.     And I enter my social post from "Twitter" into the WP Add Story page Body field
  172.     And I enter my social post from "Instagram" into the WP Add Story page Body field
  173.     And I enter "Mike" into the WP Add Story page Replacement Byline field
  174.     And I add the tag "e2e" into the WP Add Story page Tags
  175.     And I select "story" from the WP Add Story page Post Type dropdown
  176.     And I click on the "Composite" WP Add Story page Format option button
  177.     And I select the "Enriched-only" option from the WP Add Story Content Type field
  178.     And I click the Set Featured Images Button
  179.     And I enter "FC Barcelona" into the WP Images API Search Field
  180.     And I select the first image available
  181.     And I click the Featured Image edit button
  182.     And I click on the image to define a point of interest
  183.     And I click the Save & Set as Featured Image button
  184.     Then I assert I am on the WP Edit Story page
  185.     And I assert that the Featured Image is "visible" on the WP Add Story page
  186.     And I select "Sport" from the WP Add Story page Services dropdown
  187.     And I select "Sport:Football" from the WP Add Story page Sub-Services dropdown
  188.     And I select "Soccer" from the WP Add Story page Topics dropdown
  189.     And I add the keyword "Barcelona" into the WP Add Story page Keywords
  190.     And I click on the WP Add Story page Publish button
  191.     And I accept the alert
  192.     Then I assert I am on the WP Edit Story page
  193.     And I retrieve the WP API Story Item
  194.     Then I assert the WP API Item response contains a node "status" with value "publish"
  195.     When I retrieve the Content Repo Story Item
  196.     Then I assert the Content Repo publication status is "usable"
  197.     Then I assert the Content Repo title is "Football Report"
  198.     Then I assert the Content Repo abstract is "This is a report about Barcelona FC"
  199.     Then I assert the Content Repo body is "Barcelona Football Report"
  200.     Then I assert the Content Repo byline is "Mike"
  201.     Then I assert the Content Repo post type is "story-enriched"
  202.     Then I assert the Content Repo format is "composite"
  203.     Then I assert the Content Repo subject array contains the service "Sport"
  204.     Then I assert the Content Repo subject array contains the subservice "Sport:Football"
  205.     Then I assert the Content Repo subject array contains the topic "Soccer"
  206.     Then I assert the Content Repo subject array contains the keyword "Barcelona"
  207.     Then I assert the Content Repo subject array contains the territory "UK"
  208.     Then I assert the Content Repo object array contains the content "paservice:sport:story.composite"
  209.     Then I assert the Content Repo object array contains the content "paservice:sport:football.story.composite"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top