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

setting role in behat test #67

Merged
merged 3 commits into from Apr 17, 2016
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -5,17 +5,15 @@ Feature: Date list

@api
Scenario: Close future date
# @todo, change to content creator
Given I am logged in as a user with the "administrator" role
Given I am logged in as a user with the "content_administrator" role
When I create a video with a published date in the future
Then that video does not appear on the video page
# @todo
# And that video does not appear the homepage "Nerds Online" section.

@api
Scenario: Close past date
# @todo, change to content creator
Given I am logged in as a user with the "administrator" role
Given I am logged in as a user with the "content_administrator" role
When I create a video with a published date in the past
Then that video appears on the video page
# @todo
Expand Down
6 changes: 2 additions & 4 deletions private/testing/behat/features/nerdlist.feature
Expand Up @@ -5,8 +5,7 @@ Feature: Nerdlist

@api
Scenario: Bio without proper term does not appear on the nerd page.
# @todo, change to content creator
Given I am logged in as a user with the "administrator" role
Given I am logged in as a user with the "content_administrator" role
When I visit "node/add/person"
And I fill in "title[0][value]" with "Some Random Name"
And I press "Save and publish"
Expand All @@ -16,8 +15,7 @@ Feature: Nerdlist

@api
Scenario: Bio with 'Current Member' term does appear on nerd page..
# @todo, change to content creator
Given I am logged in as a user with the "administrator" role
Given I am logged in as a user with the "content_administrator" role
Given a "member_designations" term with the name "Current Member"
When I visit "node/add/person"
# @todo, figure out random handling.
Expand Down
2 changes: 1 addition & 1 deletion private/testing/behat/features/pathauto.feature
Expand Up @@ -3,7 +3,7 @@ Feature: Pathauto
@api
Scenario: blog post
# @todo role
Given I am logged in as a user with the "administrator" role
Given I am logged in as a user with the "content_administrator" role
When I visit "node/add/blog_post"
And I fill in "title[0][value]" with "A Blog Post Title"
And I fill in "field_date_published[0][value][date]" with "2015-10-31"
Expand Down
Expand Up @@ -5,7 +5,7 @@

@api
Scenario: video
Given I am logged in as a user with the "administrator" role
Given I am logged in as a user with the "content_administrator" role
Given a "member_designations" term with the name "Viewable bio page"

# Make two people
Expand Down
81 changes: 80 additions & 1 deletion sites/default/config/user.role.content_administrator.yml
Expand Up @@ -6,4 +6,83 @@ id: content_administrator
label: 'Content Administrator'
weight: 3
is_admin: null
permissions: { }
permissions:
2: 'access content overview'
3: 'revert all revisions'
4: 'view all revisions'
5: 'create blog_post content'
6: 'edit any blog_post content'
7: 'edit own blog_post content'
8: 'view own unpublished content'
9: 'administer nodes'
10: 'create page content'
11: 'delete any page content'
12: 'delete own page content'
13: 'delete page revisions'
14: 'edit any page content'
15: 'edit own page content'
16: 'revert page revisions'
17: 'view page revisions'
18: 'delete any blog_post content'
19: 'delete own blog_post content'
20: 'delete blog_post revisions'
21: 'revert blog_post revisions'
22: 'view blog_post revisions'
23: 'create clip content'
24: 'delete any clip content'
25: 'delete own clip content'
26: 'delete clip revisions'
27: 'edit any clip content'
28: 'edit own clip content'
29: 'revert clip revisions'
30: 'view clip revisions'
31: 'create event content'
32: 'delete any event content'
33: 'delete own event content'
34: 'delete event revisions'
35: 'edit any event content'
36: 'edit own event content'
37: 'revert event revisions'
38: 'view event revisions'
39: 'create location content'
40: 'delete any location content'
41: 'delete own location content'
42: 'delete location revisions'
43: 'edit any location content'
44: 'edit own location content'
45: 'revert location revisions'
46: 'view location revisions'
47: 'create person content'
48: 'delete any person content'
49: 'delete own person content'
50: 'delete person revisions'
51: 'edit any person content'
52: 'edit own person content'
53: 'revert person revisions'
54: 'view person revisions'
55: 'create podcast content'
56: 'delete any podcast content'
57: 'delete own podcast content'
58: 'delete podcast revisions'
59: 'edit any podcast content'
60: 'edit own podcast content'
61: 'revert podcast revisions'
62: 'view podcast revisions'
63: 'create podcast_episode content'
64: 'delete any podcast_episode content'
65: 'delete own podcast_episode content'
66: 'delete podcast_episode revisions'
67: 'edit any podcast_episode content'
68: 'edit own podcast_episode content'
69: 'revert podcast_episode revisions'
70: 'view podcast_episode revisions'
71: 'create video content'
72: 'delete any video content'
73: 'delete own video content'
74: 'delete video revisions'
75: 'edit any video content'
76: 'edit own video content'
77: 'revert video revisions'
78: 'view video revisions'
79: 'access toolbar'
80: 'view the administration theme'