Sha256: 5636ddf45f5a84ab6fb7b349020f4dc7eb5cfc154058f40fd4cc25dcf831f6e1

Contents?: true

Size: 1.44 KB

Versions: 37

Compression:

Stored size: 1.44 KB

Contents

@javascript
Feature: Inline frontend editing
  In order to ensure site content is not tampered with
  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 designer and an author
    Given a page named "about" with the template:
    """
    <html>
      <head>{% inline_editor %}</head>
      <body>Page Content</body>
    </html>
    """

  Scenario: As an unauthenticated user
    Given I am not authenticated
    When I view the rendered page at "/about"
    Then I should not see "Admin"
    When I view the rendered page at "/about/_admin"
    Then I should not see "Editing mode"
    And I should see "Log in"

  Scenario: Inline editing as an Admin
    Given I am an authenticated "admin"
    When I view the rendered page at "/about"
    Then I should see "Admin"
    When I view the rendered page at "/about/_admin"
    Then I should see "Editing mode"

  @javascript
  Scenario: Inline editing as a Designer
    Given I am an authenticated "designer"
    When I view the rendered page at "/about"
    Then I should see "Admin"
    When I view the rendered page at "/about/_admin"
    Then I should see "Editing mode"

  Scenario: Inline editing as an Author
    Given I am an authenticated "author"
    When I view the rendered page at "/about"
    Then I should see "Admin"
    When I view the rendered page at "/about/_admin"
    Then I should see "Editing mode"

Version data entries

37 entries across 37 versions & 2 rubygems

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