2017-09-11 07:53:59 +02:00
|
|
|
Feature: Set up reviews
|
|
|
|
As a CMS user
|
|
|
|
I can set up content reviews for my content
|
|
|
|
In order to ensure my content gets reviewed regularly
|
|
|
|
|
|
|
|
Background:
|
|
|
|
# Note: the review date is deliberately in the past
|
|
|
|
Given a "page" "Home" with "Content"="<p>Welcome</p>", "NextReviewDate"="01/01/2017", "ReviewPeriodDays"="1"
|
|
|
|
And I am logged in with "ADMIN" permissions
|
|
|
|
And I go to "admin/pages"
|
|
|
|
|
|
|
|
@javascript
|
|
|
|
Scenario: I can set content review options
|
|
|
|
When I click on "Home" in the tree
|
|
|
|
And I click the "Settings" CMS tab
|
2020-12-15 01:54:35 +01:00
|
|
|
Then I should see a "Content review" button
|
2017-09-11 07:53:59 +02:00
|
|
|
|
2020-12-15 01:54:35 +01:00
|
|
|
When I click the "Content review" CMS tab
|
2017-09-11 07:53:59 +02:00
|
|
|
And I select "Custom settings" from "Options" input group
|
|
|
|
And I wait for 1 second
|
|
|
|
And I select "ADMIN group" from "Groups"
|
|
|
|
And I press "Save"
|
|
|
|
Then I should see a "Content due for review" button
|
|
|
|
|
|
|
|
@javascript
|
|
|
|
Scenario: I can enter a review in the modal
|
|
|
|
When I click on "Home" in the tree
|
|
|
|
And I click the "Settings" CMS tab
|
2020-12-15 01:54:35 +01:00
|
|
|
And I click the "Content review" CMS tab
|
2017-09-11 07:53:59 +02:00
|
|
|
And I select "Custom settings" from "Options" input group
|
|
|
|
And I wait for 1 seconds
|
|
|
|
And I select "ADMIN group" from "Groups"
|
|
|
|
And I press "Save"
|
|
|
|
And I follow "Content due for review"
|
|
|
|
And I wait for 3 seconds
|
|
|
|
Then I should see a "Mark as reviewed" button
|
|
|
|
|
|
|
|
When I fill in "Review" with "LGTM"
|
|
|
|
And I press "Mark as reviewed"
|
|
|
|
And I wait for 3 seconds
|
|
|
|
Then I should see "Review successfully added"
|