Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add stanford_page.feature for sites/uat #182

Merged
merged 7 commits into from
Oct 23, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion sites/uat/features/high-value/stanford_news_global

This file was deleted.

1 change: 1 addition & 0 deletions sites/uat/features/high-value/stanford_news_global.feature
42 changes: 42 additions & 0 deletions sites/uat/features/high-value/stanford_page.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
Feature: Stanford Page
In order to ensure that the Stanford Page displays properly
As an end user
I want to verify the display of content.

@api @safe
Scenario: Check for fields on manage fields page
Given I am logged in as a user with the "administrator" role
And I am on "admin/structure/types/manage/stanford_page/fields"
Then I should see "Title"
And I should see "field_s_image_info"
And I should see "body"
And I should see "field_s_page_image_insert"
And I should see "field_s_page_file"
Then I am on "admin/structure/types/manage/stanford_page/display"
And I should see "Postcard"
And I should see "Postcard Image"
And I should see "Postcard Content"
#And I should see "View mode: Large Scaled"
Then I want to validate select field option "edit-fields-field-s-page-file-type" default is "Generic file"

@api @dev
Scenario: Add Stanford Page
Given I am logged in as a user with the "administrator" role
And I am on "node/add/stanford-page"
Then I should see the heading "Create Stanford Page" in the "Branding" region
And the "Text format" field should contain "content_editor_text_format"
Then I attach the file "img/ooooaaaahhh.jpg" to "edit-field-s-image-info-und-0-field-s-image-image-und-0-upload"
Then I should see "Source Info"
When I enter "Foo Stanford Page" for "Title"
Then I fill in "body[und][0][value]" with "Hello, this is a nice body"
And I press the "Save" button
Then I should see "Stanford Page Foo Stanford Page has been created"
And I should be on "foo-stanford-page"
And I should see 1 ".field-name-field-s-image-image" element
And I should see "Hello, this is a nice body"

@api @safe
Scenario: Check for display on manage pages view
Given I am logged in as a user with the "administrator" role
And I am on "admin/structure/views"
Then I should see "Stanford Page: Manage"