Skip to content
This repository has been archived by the owner on Dec 10, 2021. It is now read-only.

PLAT-23_behat_tests added create user test #47

Merged
merged 13 commits into from
Mar 23, 2016
Merged
Show file tree
Hide file tree
Changes from 6 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
2 changes: 1 addition & 1 deletion profiles/cr/tests/behat/behat.yml.phing
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ default:
drush:
root: "%%DRUPAL_TI_DRUPAL_DIR%%"
region_map:
content: ".layout-content"
content: ".layout-content"
22 changes: 22 additions & 0 deletions profiles/cr/tests/behat/features/create.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Feature: Create
This feature covers anything that needs to be created via the CMS. Starting with articles and users.

@api
Scenario: Create users
Given users:
| name | mail | status |
| Matt Wagg | m.wagg@comicrelief.com | 1 |
And I am logged in as a user with the "administrator" role
When I visit "admin/people"
Then I should see the link "Matt Wagg"

@api
Scenario: Create news-article
Given "article" content:
| title |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wagg-matt probably best to add some more fields as well, not just title?

| article one |
| article two |
And I am logged in as a user with the "administrator" role
When I go to "admin/content"
Then I should see "article one"
And I should see "article two"
6 changes: 6 additions & 0 deletions profiles/cr/tests/behat/features/video-plays.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Feature: Video-plays
In order to see a video play in an article

# @javascript
# Scenario: Video-plays /whats-going-on/look-what-you’ve-helped-to-achieve-since-2007
# Given I am on "/whats-going-on/look-what-you’ve-helped-to-achieve-since-2007"