diff --git a/features/admin/content_types.feature b/features/admin/content_types.feature new file mode 100644 index 00000000..71da783e --- /dev/null +++ b/features/admin/content_types.feature @@ -0,0 +1,21 @@ +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 + +Scenario: I do not want my content form to have n duplicate fields if I submit n times the content type form with errors (bug) + When I go to the "Projects" model edition page + And I fill in "Name" with "" + And I press "Update" + And I press "Update" + And I press "Update" + When I follow "new item" + Then I should not see 4 times the "Name" field