Skip to content

Commit

Permalink
Merge branch 'master' of git@github.com:svenfuchs/adva_cms
Browse files Browse the repository at this point in the history
  • Loading branch information
joshmh committed Oct 4, 2008
2 parents 79d114a + 80a2d6c commit c381253
Show file tree
Hide file tree
Showing 31 changed files with 198 additions and 218 deletions.
@@ -1,7 +1,4 @@
# TODO
# attach to article

Story: Managing assets
Story: Managing assets (TODO: attach to article)
As an admin
I want to manage my site's assets
So I can get use them on the site
Expand Down
12 changes: 12 additions & 0 deletions stories/stories/admin/blog/deleting_a_blog_article.txt
@@ -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.
38 changes: 38 additions & 0 deletions stories/stories/admin/blog/publishing_a_blog_article.txt
@@ -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
@@ -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
86 changes: 0 additions & 86 deletions stories/stories/admin/blog_article.txt

This file was deleted.

File renamed without changes.
Expand Up @@ -16,17 +16,3 @@ Story: Installing the initial site (and admin account)
And an admin account is created
And the admin account is verified
And the system authenticates the user as superuser

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
@@ -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 stories/stories/admin/sections/deleting_a_section_article.txt
@@ -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.
Expand Up @@ -31,32 +31,3 @@ Story: Publishing a section article
And the user clicks the 'Apply changes' button
And the user goes to the section url on frontend
Then the page displays the article

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

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
12 changes: 12 additions & 0 deletions stories/stories/admin/sections/reordering_section_articles.txt
@@ -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.
28 changes: 28 additions & 0 deletions stories/stories/blog/comment_on_an_article.txt
@@ -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
@@ -1,35 +1,3 @@
# TODO page caching?, access control

Story: Commenting on a blog article
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


Story: Spam control for blog comments
As a blog admin
I want to control blog spam according to my requirements
Expand Down Expand Up @@ -77,4 +45,3 @@ Story: Spam control for blog comments
And a published blog article with no comments
When the user posts a comment which Akismet thinks is ham
Then the comment is approved

12 changes: 12 additions & 0 deletions stories/stories/blog/preview_article.txt
@@ -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
Expand Up @@ -59,18 +59,3 @@ Story: Viewing a blog article page
When the user goes to the url /2008/1/1/the-article-title
Then the request does not succeed
And the page is not cached


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

File renamed without changes.
File renamed without changes.
File renamed without changes.
Expand Up @@ -11,4 +11,4 @@ Story: Anonymous login
Then an anonymous account exists
When the user goes to the comment show page
Then the system authenticates the user as a known anonymous
And the anonymous id is saved to a cookie
And the anonymous id is saved to a cookie
Expand Up @@ -20,4 +20,4 @@ Story: Registration
Scenario: A user verifies his account
Given an unverified user
When the user verifies their account
Then the user is verified
Then the user is verified

0 comments on commit c381253

Please sign in to comment.