Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of git@github.com:svenfuchs/adva_cms
- Loading branch information
Showing
31 changed files
with
198 additions
and
218 deletions.
There are no files selected for viewing
5 changes: 1 addition & 4 deletions
5
stories/stories/admin/asset.txt → .../stories/admin/assets/managing_assets.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Story: Deleting a blog article | ||
As an admin | ||
I want to delete a blog article in the admin area | ||
So that the article is removed from the system | ||
|
||
Scenario: An admin deletes a blog article | ||
Given a blog with an article | ||
And the user is logged in as admin | ||
When the user visits the admin blog article edit page | ||
And the user clicks on 'Delete this article' | ||
Then the user is redirected to the admin blog articles page | ||
And the article is deleted |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
Story: Publishing a blog article | ||
As an admin | ||
I want to write blog articles in the admin area | ||
So they get published in the frontend | ||
|
||
Scenario: An admin writes a blog article | ||
Given a blog with no articles | ||
And the user is logged in as admin | ||
When the user visits the admin blog articles list page | ||
Then the page has an empty list | ||
When the user clicks on 'Create one now' | ||
Then the page has an admin article creation form | ||
And the 'Save as draft?' checkbox is checked by default | ||
When the user fills in the admin article creation form with valid values | ||
And the user clicks the 'Save article' button | ||
Then the user is redirected to the admin blog articles edit page | ||
And a new article is saved | ||
|
||
Scenario: An admin previews a blog article | ||
Given page cache is enabled and empty | ||
And a blog with an article | ||
And the user is logged in as admin | ||
When the user visits the admin blog articles list page | ||
Then the page has a list of articles | ||
When the user clicks on the article link | ||
Then the page has an admin article editing form | ||
When the user clicks on 'Preview' | ||
Then the page displays the article as preview | ||
And the page is not cached | ||
|
||
Scenario: An admin publishes a blog article | ||
Given a blog with an article | ||
And the user is logged in as admin | ||
When the user visits the admin blog article edit page | ||
And the user unchecks 'Yes, save this article as a draft' | ||
And the user clicks the 'Apply changes' button | ||
And the user goes to the url / | ||
Then the page displays the article |
34 changes: 34 additions & 0 deletions
34
stories/stories/admin/blog/sending_pings_when_publishing_an_article.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Story: Sending pings when publishing an article | ||
# As an admin | ||
# I want the blog to send pings to ping services when I publish an article | ||
# So my article gets more traffic | ||
# | ||
# Scenario: Publishing a new article triggers pings | ||
# Given a blog with no articles | ||
# And the user is logged in as admin | ||
# When the user creates and publishes a new article | ||
# Then the blog has sent pings | ||
# | ||
# Scenario: Publishing an existing article triggers pings | ||
# Given a blog with an article | ||
# When the user is logged in as admin | ||
# When the user updates and publishes the article | ||
# Then the blog has sent pings | ||
# | ||
# Scenario: Updating a published article does not trigger pings | ||
# Given a blog with a published article | ||
# When the user is logged in as admin | ||
# When the user updates the article | ||
# Then the blog has not sent any pings | ||
# | ||
# Scenario: Updating an unpublished article does not trigger pings | ||
# Given a blog with an unpublished article | ||
# When the user is logged in as admin | ||
# When the user updates the article | ||
# Then the blog has not sent any pings | ||
# | ||
# Scenario: Unpublishing an article does not trigger pings | ||
# Given a blog with a published article | ||
# When the user is logged in as admin | ||
# When the user unpublishes the article | ||
# Then the blog has not sent any pings |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
stories/stories/admin/installation/viewing_an_empty_frontend_after_installation.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Story: Viewing an empty frontend after installation | ||
As a user | ||
I want to access the frontend after installation without doing anything else | ||
So I can leave the admin interface early | ||
|
||
Scenario: | ||
Given no site exists | ||
And no user exists | ||
When the user goes to the url / | ||
When the user fills in the site install form with valid values | ||
And the user clicks the 'Create' button | ||
When the user clicks on 'logout' | ||
Then the user sees an empty homepage |
15 changes: 15 additions & 0 deletions
15
stories/stories/admin/sections/deleting_a_section_article.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Story: Deleting a section article | ||
As an admin | ||
I want to delete a section article in the admin area | ||
So that the article is removed from the system | ||
|
||
Scenario: An admin deletes a section article | ||
Given a section with an article | ||
And the user is logged in as admin | ||
When the user visits the admin section articles list page | ||
Then the page has a list of articles | ||
When the user clicks on the article link | ||
Then the page has an admin article editing form | ||
When the user clicks on 'Delete this article' | ||
Then the user is redirected to the admin section articles page | ||
And the article is deleted |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
stories/stories/admin/sections/reordering_section_articles.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Story: Reordering section articles | ||
As an admin | ||
I want to reorder section articles | ||
So I can control which article is displayed as the primary article | ||
|
||
Scenario An admin reorders section articles do | ||
Given a section with two articles | ||
And the user is logged in as admin | ||
When the user visits the admin section articles list page | ||
Then the page has a reorder articles link | ||
When the user moves the second article to the top | ||
Then the second article is sorted to the top |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
Story: Commenting on a blog article (TODO page caching?, access control) | ||
As a user with a given role that allows me to comment in a blog | ||
I want to comment on an article | ||
So I can share my opinions | ||
|
||
Scenario: An anonymous user comments on an article | ||
Given a blog that allows anonymous users to create comments | ||
And a published blog article with no comments | ||
When the user goes to the url /2008/1/1/the-article-title | ||
Then the page has a comment creation form | ||
And the form contains anonymous name and email fields | ||
When the user fills in the form with his name, email and comment | ||
And the user clicks the 'Submit comment' button | ||
Then the article has an unapproved comment | ||
And the user is redirected to the comment show page | ||
|
||
Scenario: An anonymous user updates a comment that he has submitted | ||
Given a blog that allows anonymous users to create comments | ||
And a published blog article with no comments | ||
When the user posts a comment to the blog article | ||
And the user goes to the comment show page | ||
Then the page shows 'the comment body' | ||
Then the page has a comment edit form | ||
And the form contains anonymous name and email fields | ||
When the user fills in comment_body with 'the updated body' | ||
And the user clicks the 'Save Comment' button | ||
Then the comment's body is set to 'the updated body' | ||
And the user is redirected to the comment show page |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Story: Previewing a blog article page | ||
As an admin | ||
I want to access an unpublished blog article's page | ||
So I can preview it | ||
|
||
Scenario: An blog article page for an unpublished article | ||
Given page cache is enabled and empty | ||
And an unpublished blog article | ||
And the user is logged in as admin | ||
When the user goes to the url /2008/1/1/the-article-title | ||
Then the page shows 'the article title' | ||
And the page is not cached |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.