Created
August 1, 2012 17:17
-
-
Save zroger/3228939 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Feature: Content editor creates a page. | |
As a content editor | |
I want to create a new page | |
In order to have visitors see new content. | |
Scenario: Save & Continue Editing | |
Given I am logged in as a user with the "content editor" role | |
And I have access to the "Brand Z Ecommerce Master" domain | |
When I follow "Add content" | |
And I follow "Page" | |
And I fill in "Page Title" with "Testing page creation" | |
And I fill in "Coremetrics Title" with "Testing page creation" | |
And I select "Miscellaneous" from "Site Section" | |
And I press "Save & Continue Editing" | |
Then the URL should match "^\/node\/\d+\/revisions\/\d+\/edit$" | |
And I should see "Page Testing page creation has been created." | |
Scenario: Save & Preview | |
Given I am logged in as a user with the "content editor" role | |
And I have access to the "Brand Z Ecommerce Master" domain | |
When I follow "Add content" | |
And I follow "Page" | |
And I fill in "Page Title" with "Testing page creation, save and preview" | |
And I fill in "Coremetrics Title" with "Testing page creation, save and preview" | |
And I select "Miscellaneous" from "Site Section" | |
And I press "Save & Preview" | |
Then I should be on "/testing-page-creation-save-and-preview" | |
And I should see "Page Testing page creation, save and preview has been created." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment