Sha256: e6250cb85306a3c8e51dcd3e73d29f944bf19f116d4e0cc351784f81c38408f3

Contents?: true

Size: 1.11 KB

Versions: 33

Compression:

Stored size: 1.11 KB

Contents

Feature: Snippets
  In order to manage snippets
  As an administrator
  I want to add/edit/delete snippets of my site

Background:
  Given I have the site: "test site" set up
  And I am an authenticated user
  And a page named "home" with the template:
  """
  {% include 'yield' %}
  """
  And a snippet named "yield" with the template:
  """
  "yield"
  """

Scenario: Creating a snippet
  When I go to theme assets
  And I follow "new snippet" within the main content
  And I fill in "Name" with "Banner"
  And I fill in "Slug" with "banner"
  And I fill in "snippet_template" with "banner"
  And I press "Create"
  Then I should see "Snippet was successfully created." in the html code
  And I should have "banner" in the banner snippet

@javascript
Scenario: Updating a snippet that includes another snippet
  Given a snippet named "other" with the template:
  """
  "other"
  """
  When I go to theme assets
  And I follow "yield"
  And I change the snippet template to "{% include other %}"
  And I press "Save"
  Then I should see "Snippet was successfully updated."
  And I should have "{% include other %}" in the yield snippet

Version data entries

33 entries across 33 versions & 2 rubygems

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