2010-07-31 06:47:04 +00:00
|
|
|
Feature: Manage Pages
|
2010-07-26 08:00:01 +00:00
|
|
|
In order to manage pages
|
|
|
|
As an administrator
|
|
|
|
I want to add/edit/delete pages of my site
|
|
|
|
|
2010-08-01 20:55:30 +00:00
|
|
|
Background:
|
|
|
|
Given I have the site: "test site" set up
|
|
|
|
And I am an authenticated user
|
2010-05-09 12:44:53 +00:00
|
|
|
|
2010-08-01 20:55:30 +00:00
|
|
|
Scenario: Pages list is not accessible for non authenticated accounts
|
|
|
|
Given I am not authenticated
|
|
|
|
When I go to pages
|
2012-02-17 00:16:22 +00:00
|
|
|
Then I should see "You need to sign in or sign up before continuing"
|
2010-05-09 12:44:53 +00:00
|
|
|
|
2012-02-17 00:16:22 +00:00
|
|
|
@javascript
|
2010-08-01 20:55:30 +00:00
|
|
|
Scenario: Creating a valid page
|
|
|
|
When I go to pages
|
|
|
|
And I follow "new page"
|
2011-06-23 14:27:03 +00:00
|
|
|
And I fill in "page_title" with "Test"
|
2010-08-01 20:55:30 +00:00
|
|
|
And I fill in "Slug" with "test"
|
|
|
|
And I select "Home page" from "Parent"
|
|
|
|
And I press "Create"
|
|
|
|
Then I should see "Page was successfully created."
|
2012-02-17 00:16:22 +00:00
|
|
|
And I should have "{% extends 'parent' %}" in the test page
|
2010-08-01 10:37:49 +00:00
|
|
|
|
2012-02-17 00:16:22 +00:00
|
|
|
@wip
|
|
|
|
@javascript
|
2010-08-01 20:55:30 +00:00
|
|
|
Scenario: Updating a valid page
|
|
|
|
When I go to pages
|
|
|
|
And I follow "Home page"
|
2011-06-23 14:27:03 +00:00
|
|
|
And I fill in "page_title" with "Home page !"
|
2010-10-14 14:01:18 +00:00
|
|
|
And I fill in "Raw template" with "My new content is here"
|
2011-07-22 23:26:16 +00:00
|
|
|
And I press "Save"
|
2010-08-01 20:55:30 +00:00
|
|
|
Then I should see "Page was successfully updated."
|
2010-08-20 16:24:59 +00:00
|
|
|
And I should have "My new content is here" in the index page
|