|
2 | 2 | Feature: Content types management |
3 | 3 | As an administrator |
4 | 4 | In order to customize my Ibexa installation |
5 | | - I want to manage my Content types. |
| 5 | + I want to manage my content types. |
6 | 6 |
|
7 | 7 | Background: |
8 | 8 | Given I am logged as admin |
9 | 9 |
|
10 | 10 | @javascript |
11 | | - Scenario: Changes can be discarded while creating Content Type |
12 | | - Given I'm on Content Type Page for "Content" group |
13 | | - When I create a new Content Type |
| 11 | + Scenario: Changes can be discarded while creating content type |
| 12 | + Given I'm on content type Page for "Content" group |
| 13 | + When I create a new content type |
14 | 14 | And I set fields |
15 | 15 | | label | value | |
16 | | - | Name | Test Content Type | |
| 16 | + | Name | Test content type | |
17 | 17 | | Identifier | TestContentTypeIdentifier | |
18 | 18 | And I perform the "Discard" action |
19 | | - Then I should be on Content Type group page for "Content" group |
20 | | - And there's no "Test Content Type" on Content Types list |
| 19 | + Then I should be on content type group page for "Content" group |
| 20 | + And there's no "Test content type" on content types list |
21 | 21 |
|
22 | 22 | @javascript |
23 | | - Scenario: New Content Type can be added to Content Type group |
24 | | - Given I'm on Content Type Page for "Content" group |
25 | | - When I create a new Content Type |
| 23 | + Scenario: New content type can be added to content type group |
| 24 | + Given I'm on content type Page for "Content" group |
| 25 | + When I create a new content type |
26 | 26 | And I set fields |
27 | 27 | | label | value | |
28 | | - | Name | Test Content Type | |
| 28 | + | Name | Test content type | |
29 | 29 | | Identifier | TestContentTypeIdentifier | |
30 | 30 | | Content name pattern | <name> | |
31 | | - And I select "Content" category to Content Type definition |
32 | | - And I add field "Country" to Content Type definition |
| 31 | + And I select "Content" category to content type definition |
| 32 | + And I add field "Country" to content type definition |
33 | 33 | And I set "Name" to "Country field" for "Country" field |
34 | 34 | And I perform the "Save and close" action |
35 | | - Then notification that "Content Type" "New Content Type" is updated appears |
36 | | - Then I should be on Content Type page for "Test Content Type" |
37 | | - And Content Type has proper Global properties |
| 35 | + Then notification that "Content type" "New content type" is updated appears |
| 36 | + Then I should be on content type page for "Test content type" |
| 37 | + And content type has proper Global properties |
38 | 38 | | label | value | |
39 | | - | Name | Test Content Type | |
| 39 | + | Name | Test content type | |
40 | 40 | | Identifier | TestContentTypeIdentifier | |
41 | 41 | | Content name pattern | <name> | |
42 | | - And Content Type "Test Content Type" has proper fields |
| 42 | + And content type "Test content type" has proper fields |
43 | 43 | | fieldName | fieldType | |
44 | 44 | | Country field | ezcountry | |
45 | 45 |
|
46 | 46 | @javascript @APIUser:admin |
47 | | - Scenario: Changes can be discarded while editing Content type |
48 | | - Given I create a "TestDiscard CT" Content Type in "Content" with "testdiscard" identifier |
| 47 | + Scenario: Changes can be discarded while editing content type |
| 48 | + Given I create a "TestDiscard CT" content type in "Content" with "testdiscard" identifier |
49 | 49 | | Field Type | Name | Identifier | Required | Searchable | Translatable | Settings | |
50 | 50 | | Text line | Name | name | no | yes | yes | | |
51 | | - And I'm on Content Type Page for "Content" group |
52 | | - And there's a "TestDiscard CT" on Content Types list |
53 | | - When I start editing Content Type "TestDiscard CT" |
| 51 | + And I'm on content type Page for "Content" group |
| 52 | + And there's a "TestDiscard CT" on content types list |
| 53 | + When I start editing content type "TestDiscard CT" |
54 | 54 | And I set fields |
55 | 55 | | label | value | |
56 | | - | Name | Test Content Type edited | |
| 56 | + | Name | Test content type edited | |
57 | 57 | And I perform the "Discard" action |
58 | | - Then I should be on Content Type group page for "Content" group |
59 | | - And there's a "TestDiscard CT" on Content Types list |
60 | | - And there's no "Test Content Type edited" on Content Types list |
| 58 | + Then I should be on content type group page for "Content" group |
| 59 | + And there's a "TestDiscard CT" on content types list |
| 60 | + And there's no "Test content type edited" on content types list |
61 | 61 |
|
62 | 62 | @javascript @APIUser:admin |
63 | | - Scenario: New Field can be added while editing Content Type |
64 | | - Given I create a "TestEdit CT" Content Type in "Content" with "testedit" identifier |
| 63 | + Scenario: New Field can be added while editing content type |
| 64 | + Given I create a "TestEdit CT" content type in "Content" with "testedit" identifier |
65 | 65 | | Field Type | Name | Identifier | Required | Searchable | Translatable | Settings | |
66 | 66 | | Text line | Name | name | no | yes | yes | | |
67 | | - And I'm on Content Type Page for "Content" group |
68 | | - When I start editing Content Type "TestEdit CT" |
| 67 | + And I'm on content type Page for "Content" group |
| 68 | + When I start editing content type "TestEdit CT" |
69 | 69 | And I set fields |
70 | 70 | | label | value | |
71 | | - | Name | Test Content Type edited | |
72 | | - And I add field "Date" to Content Type definition |
| 71 | + | Name | Test content type edited | |
| 72 | + And I add field "Date" to content type definition |
73 | 73 | And I set "Name" to "DateField" for "Date" field |
74 | 74 | And I perform the "Save and close" action |
75 | | - Then success notification that "Content Type 'TestEdit CT' updated." appears |
76 | | - Then I should be on Content Type page for "Test Content Type edited" |
77 | | - And Content Type has proper Global properties |
| 75 | + Then success notification that "Content type 'TestEdit CT' updated." appears |
| 76 | + Then I should be on content type page for "Test content type edited" |
| 77 | + And content type has proper Global properties |
78 | 78 | | label | value | |
79 | | - | Name | Test Content Type edited | |
| 79 | + | Name | Test content type edited | |
80 | 80 | | Identifier | testedit | |
81 | 81 | | Content name pattern | <name> | |
82 | | - And Content Type "Test Content Type" has proper fields |
| 82 | + And content type "Test content type" has proper fields |
83 | 83 | | fieldName | fieldType | |
84 | 84 | | Name | ezstring | |
85 | 85 | | DateField | ezdate | |
86 | 86 |
|
87 | 87 | @javascript @APIUser:admin |
88 | | - Scenario: Content type can be deleted from Content Type group |
89 | | - Given I create a "TestDelete CT" Content Type in "Content" with "testdelete" identifier |
| 88 | + Scenario: Content type can be deleted from content type group |
| 89 | + Given I create a "TestDelete CT" content type in "Content" with "testdelete" identifier |
90 | 90 | | Field Type | Name | Identifier | Required | Searchable | Translatable | Settings | |
91 | 91 | | Text line | Name | name | no | yes | yes | | |
92 | | - And I'm on Content Type Page for "Content" group |
93 | | - And there's a "TestDelete CT" on Content Types list |
94 | | - When I delete "TestDelete CT" Content Type |
95 | | - Then success notification that "Content Type 'TestDelete CT' deleted." appears |
96 | | - And there's no "TestDelete CT" on Content Types list |
| 92 | + And I'm on content type Page for "Content" group |
| 93 | + And there's a "TestDelete CT" on content types list |
| 94 | + When I delete "TestDelete CT" content type |
| 95 | + Then success notification that "Content type 'TestDelete CT' deleted." appears |
| 96 | + And there's no "TestDelete CT" on content types list |
0 commit comments