creating_configuration.feature
1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
Feature: Create configuration
As a mezuro user
I want to create a Kalibro configuration
Background:
Given the following users
| login | name |
| joaosilva | Joao Silva |
And I am logged in as "joaosilva"
And "Mezuro" plugin is enabled
And the following community
| identifier | name |
| mycommunity | My Community |
And "Joao Silva" is admin of "My Community"
Scenario: creating with valid attributes
Given I am on My Community's cms
When I create a content of type "Kalibro configuration" with the following data
| Title | Qt_Calculator |
| Description | A sample description |
Then I should see "Name"
And I should see "Qt_Calculator"
And I should see "Description"
And I should see "A sample description"
Scenario: creating with duplicated name
Given I am on My Community's cms
And I create a content of type "Kalibro configuration" with the following data
| Title | Original Title |
And I am on My Community's cms
When I create a content of type "Kalibro configuration" with the following data
| Title | Original Title |
Then I should see "1 error prohibited this article from being saved"
Scenario: creating without title
Given I am on My Community's cms
When I create a content of type "Kalibro configuration" with the following data
| Title | |
Then I should see "1 error prohibited this article from being saved"