Commit 6e136c786661326dd3dae8639d5ebcf679a4d85f

Authored by Diego Camarinha
Committed by Paulo Meireles
1 parent 840da490

[Mezuro] Wrote feature for creating a configuration

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