diff --git a/plugins/mezuro/test/features/creating_configuration.feature b/plugins/mezuro/test/features/creating_configuration.feature new file mode 100644 index 0000000..3c48648 --- /dev/null +++ b/plugins/mezuro/test/features/creating_configuration.feature @@ -0,0 +1,39 @@ +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 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 {{model}} from being saved" + + Scenario: creating with duplicated title + 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 {{model}} from being saved" -- libgit2 0.21.2