Added the [Feature: Content Structure - Article (Book page)] automated functional acceptance tests and revoke [create book content

vardoc/tests/features/vardoc/step2-apply-tests/04-content-structure/04-02-book-page-permissions.feature

Feature: Content Structure - Article (Book page)
As a logged in user with a permission to manage Article (Book page).
I want to be able to add a "Book page" which has got predefined set of fields
So that the "Book page" will show up in the structured menu under its parent page

  @javascript @local @development @staging @production
  Scenario: Check if we do have the "Book page" content type.
    Given I am a logged in user with the "webmaster" user
     When I go to "/admin/structure/types"
      And I wait
     Then I should see "Article (Book page)"

  @javascript @local @development @staging @production
  Scenario: Check that "Article (Book page)" type have a the book fields.
    Given I am a logged in user with the "webmaster" user
     When I go to "/admin/structure/types/manage/book/fields"
      And I wait
      Then I should see "Body"
      And I should see "Category"
      And I should see "Comment"
      And I should see "Content rating"
      And I should see "Documents"
      And I should see "External links"
      And I should see "Meta tags"

  @javascript @local @development @staging @production
  Scenario: Check that Anonymous users can not create an Article (Book page).
    Given I am an anonymous user
     When I go to "/node/add/book"
      And I wait
     Then I should see "Access denied"
      And I should see "You are not authorized to access this page."

  @javascript @local @development @staging @production
  Scenario: Check that authenticated users can not create an Article (Book page).
    Given I am a logged in user with the "test_authenticated" user
     When I go to "/node/add/book"
      And I wait
     Then I should see "Access denied"
      And I should see "You are not authorized to access this page."

  @javascript @local @development @staging @production
  Scenario: Check that Editor users can create an Article (Book page).
    Given I am a logged in user with the "test_editor" user
     When I go to "/node/add/book"
      And I wait
     Then I should not see "Access denied"
      And I should not see "You are not authorized to access this page."

  @javascript @local @development @staging @production
  Scenario: Check that Content Admin users can create an Article (Book page).
    Given I am a logged in user with the "test_content_admin" user
     When I go to "/node/add/book"
      And I wait
     Then I should not see "Access denied"
      And I should not see "You are not authorized to access this page."

  @javascript @local @development @staging @production
  Scenario: Check that Site Admin users can create an Article (Book page).
    Given I am a logged in user with the "test_site_admin" user
     When I go to "/node/add/book"
      And I wait
     Then I should not see "Access denied"
      And I should not see "You are not authorized to access this page."

Comments

Omar Alahmed created an issue. See original summary.

  • Omar Alahmed committed 8e89a70 on 8.x-1.x
    Issue #2940694: Added the [Feature: Content Structure - Article (Book...
omar alahmed’s picture

Assigned: omar alahmed » Unassigned
Status: Needs work » Needs review
rajab natshah’s picture

Issue summary: View changes
rajab natshah’s picture

Assigned: Unassigned » mohammed j. razem
Issue tags: +vardoc-8.1.0-rc2
rajab natshah’s picture

Assigned: mohammed j. razem » Unassigned
rajab natshah’s picture

Assigned: Unassigned » omar alahmed
Status: Needs review » Needs work

  • Omar Alahmed committed 5b8fda6 on 8.x-1.x
    Issue #2940694 by Omar Alahmed: Added the [Feature: Content Structure -...
omar alahmed’s picture

Assigned: omar alahmed » Unassigned
Status: Needs work » Needs review
rajab natshah’s picture

Issue summary: View changes
rajab natshah’s picture

Assigned: Unassigned » mohammed j. razem
rajab natshah’s picture

Assigned: mohammed j. razem » Unassigned
omar alahmed’s picture

Status: Needs review » Fixed
omar alahmed’s picture

Status: Fixed » Closed (fixed)
omar alahmed’s picture

omar alahmed’s picture