Cleaned up the snippet feature.
This commit is contained in:
parent
60c48f4f2e
commit
c07dbb3f98
@ -6,20 +6,23 @@ Feature: Snippets
|
|||||||
Background:
|
Background:
|
||||||
Given I have the site: "test site" set up
|
Given I have the site: "test site" set up
|
||||||
And I am an authenticated user
|
And I am an authenticated user
|
||||||
And a snippet named "yield" with the template:
|
And a page named "home" with the template:
|
||||||
"""
|
|
||||||
HELLO WORLD !
|
|
||||||
"""
|
|
||||||
|
|
||||||
Scenario: Updating a Snippet that includes another snippet
|
|
||||||
And a page named "snippet-test" with the template:
|
|
||||||
"""
|
"""
|
||||||
{% include 'yield' %}
|
{% include 'yield' %}
|
||||||
"""
|
"""
|
||||||
|
And a snippet named "yield" with the template:
|
||||||
|
"""
|
||||||
|
"yield"
|
||||||
|
"""
|
||||||
|
And a snippet named "other" with the template:
|
||||||
|
"""
|
||||||
|
"other"
|
||||||
|
"""
|
||||||
|
|
||||||
|
Scenario: Updating a Snippet that includes another snippet
|
||||||
When I go to theme assets
|
When I go to theme assets
|
||||||
And I follow "yield"
|
And I follow "yield"
|
||||||
And I fill in "snippet_template" with "{% include 'other' %}"
|
And I fill in "snippet_template" with "{% include 'other' %}"
|
||||||
And I press "Update"
|
And I press "Update"
|
||||||
Then I should see "Snippet was successfully updated."
|
Then I should see "Snippet was successfully updated."
|
||||||
And I should have "{% include 'other' %}" in the yield snippet
|
And I should have "{% include 'other' %}" in the yield snippet
|
||||||
Then show me the page
|
|
||||||
|
Loading…
Reference in New Issue
Block a user