Sha256: 742c0b86d4165ce2965128833f52c580206941acf3cfba843ba6af1313b10b6d

Contents?: true

Size: 1.25 KB

Versions: 37

Compression:

Stored size: 1.25 KB

Contents

Feature: Editing a content type
  In order to edit a content type
  As an admin, designer, or author
  I will be restricted based on my role

Background:
  Given I have the site: "test site" set up
  And I have a custom model named "Projects" with
    | label       | type      | required        |
    | Name        | string    | true            |
    | Description | text      | false           |
  And I have a designer and an author

  Scenario: As an unauthenticated user
    Given I am not authenticated
    When I go to the "Projects" model edition page
    Then I should see "Log in"

  Scenario: Accessing edition functionality as an Admin
    Given I am an authenticated "admin"
    When I go to the "Projects" model edition page
    Then I should see "Editing model"
    And I should see "Custom fields"

  Scenario: Accessing edition functionality as a Designer
    Given I am an authenticated "designer"
    When I go to the "Projects" model edition page
    Then I should see "Editing model"
    And I should see "Custom fields"

  Scenario: Accessing edition functionality as an Author
    Given I am an authenticated "author"
    When I go to the "Projects" model edition page
    Then I should be on the pages list
    And I should see the access denied message

Version data entries

37 entries across 37 versions & 2 rubygems

Version Path
locomotivecms-3.0.0.rc3 features/backoffice/authorization/content_type.feature
locomotivecms-3.0.0.rc2 features/backoffice/authorization/content_type.feature
locomotivecms-3.0.0.rc1 features/backoffice/authorization/content_type.feature
locomotivecms-3.0.0.pre.beta.1 features/backoffice/authorization/content_type.feature
locomotivecms-3.0.0.pre.alpha.3 features/backoffice/authorization/content_type.feature
locomotive_cms-2.5.7 features/backoffice/authorization/content_type.feature
locomotivecms-3.0.0.pre.alpha.2 features/backoffice/authorization/content_type.feature
locomotivecms-3.0.0.pre.alpha features/backoffice/authorization/content_type.feature
locomotive_cms-2.5.6 features/backoffice/authorization/content_type.feature
locomotive_cms-2.5.6.rc2 features/backoffice/authorization/content_type.feature
locomotive_cms-2.5.6.rc1 features/backoffice/authorization/content_type.feature
locomotive_cms-2.5.5 features/backoffice/authorization/content_type.feature
locomotive_cms-2.5.4 features/backoffice/authorization/content_type.feature
locomotive_cms-2.5.3 features/backoffice/authorization/content_type.feature
locomotive_cms-2.5.2 features/backoffice/authorization/content_type.feature
locomotive_cms-2.5.1 features/backoffice/authorization/content_type.feature
locomotive_cms-2.5.0 features/backoffice/authorization/content_type.feature
locomotive_cms-2.5.0.rc3 features/backoffice/authorization/content_type.feature
locomotive_cms-2.5.0.rc2 features/backoffice/authorization/content_type.feature
locomotive_cms-2.5.0.rc1 features/backoffice/authorization/content_type.feature