2011-07-02 12:20:03 +00:00
|
|
|
Feature: Manage Content Types
|
|
|
|
In order to manage custom content models
|
|
|
|
As an administrator
|
|
|
|
I want to add/edit/delete custom models of my site
|
|
|
|
|
|
|
|
Background:
|
|
|
|
Given I have the site: "test site" set up
|
|
|
|
And I have a custom model named "Projects" with
|
|
|
|
| label | kind | required |
|
|
|
|
| Name | string | true |
|
|
|
|
| Description | text | false |
|
|
|
|
And I am an authenticated user
|
|
|
|
|
2011-07-03 00:07:46 +00:00
|
|
|
@javascript
|
|
|
|
Scenario: I do not want my content form to have n duplicated fields if I submit n times the content type form with errors (bug)
|
2011-07-02 12:20:03 +00:00
|
|
|
When I go to the "Projects" model edition page
|
|
|
|
And I fill in "Name" with ""
|
2011-07-22 23:26:16 +00:00
|
|
|
And I press "Save"
|
|
|
|
And I press "Save"
|
|
|
|
And I press "Save"
|
2011-07-02 12:20:03 +00:00
|
|
|
When I follow "new item"
|
2011-07-03 00:07:46 +00:00
|
|
|
Then I should see once the "Name" field
|