Commit 194456160ed053a87786fd4915caf9aa33803e94

Authored by Antonio Terceiro
Committed by Paulo Meireles
1 parent 38643752

Move plugin-specific acceptance test to plugin directory

features/mezuro.feature
@@ -1,61 +0,0 @@ @@ -1,61 +0,0 @@
1 -Feature: mezuro content  
2 - As a noosfero user  
3 - I want to create a Kalibro project  
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: I see Kalibro project as an option to new content  
17 - Given I am on My Community's cms  
18 - When I follow "New content"  
19 - Then I should see "Kalibro project"  
20 -  
21 - Scenario: I see Kalibro project's input form  
22 - Given I am on My Community's cms  
23 - When I follow "New content"  
24 - And I follow "Kalibro project"  
25 - Then I should see "Title"  
26 - And I should see "License"  
27 - And I should see "Repository type"  
28 - And I should see "GIT"  
29 - And I should see "REMOTE_ZIP"  
30 - And I should see "REMOTE_TARBALL"  
31 - And I should see "SUBVERSION"  
32 - And I should see "Repository url"  
33 - And I should see "Configuration"  
34 - And I should see "Kalibro for Java"  
35 -  
36 - Scenario: I create a sample mezuro content  
37 - Given I am on My Community's cms  
38 - And I follow "New content"  
39 - And I follow "Kalibro project"  
40 - And I fill in the following:  
41 - | Title | Sample project |  
42 - | License | BSD |  
43 - | Repository type | GIT |  
44 - | Repository url | git://example |  
45 - And I press "Save"  
46 - Then I should see "Sample project"  
47 - And I should see "Viewed one time"  
48 - And I should see "BSD"  
49 -  
50 - Scenario: I create a real mezuro content  
51 - Given I am on My Community's cms  
52 - And I follow "New content"  
53 - And I follow "Kalibro project"  
54 - And I fill in the following:  
55 - | Title | Qt-Calculator |  
56 - | License | GPL 2.0 |  
57 - | Repository type | SUBVERSION |  
58 - | Repository url | https://qt-calculator.svn.sourceforge.net/svnroot/qt-calculator |  
59 - And I press "Save"  
60 - Then I should see "Qt-Calculator"  
61 -  
plugins/mezuro/features/mezuro.feature 0 → 100644
@@ -0,0 +1,61 @@ @@ -0,0 +1,61 @@
  1 +Feature: mezuro content
  2 + As a noosfero user
  3 + I want to create a Kalibro project
  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: I see Kalibro project as an option to new content
  17 + Given I am on My Community's cms
  18 + When I follow "New content"
  19 + Then I should see "Kalibro project"
  20 +
  21 + Scenario: I see Kalibro project's input form
  22 + Given I am on My Community's cms
  23 + When I follow "New content"
  24 + And I follow "Kalibro project"
  25 + Then I should see "Title"
  26 + And I should see "License"
  27 + And I should see "Repository type"
  28 + And I should see "GIT"
  29 + And I should see "REMOTE_ZIP"
  30 + And I should see "REMOTE_TARBALL"
  31 + And I should see "SUBVERSION"
  32 + And I should see "Repository url"
  33 + And I should see "Configuration"
  34 + And I should see "Kalibro for Java"
  35 +
  36 + Scenario: I create a sample mezuro content
  37 + Given I am on My Community's cms
  38 + And I follow "New content"
  39 + And I follow "Kalibro project"
  40 + And I fill in the following:
  41 + | Title | Sample project |
  42 + | License | BSD |
  43 + | Repository type | GIT |
  44 + | Repository url | git://example |
  45 + And I press "Save"
  46 + Then I should see "Sample project"
  47 + And I should see "Viewed one time"
  48 + And I should see "BSD"
  49 +
  50 + Scenario: I create a real mezuro content
  51 + Given I am on My Community's cms
  52 + And I follow "New content"
  53 + And I follow "Kalibro project"
  54 + And I fill in the following:
  55 + | Title | Qt-Calculator |
  56 + | License | GPL 2.0 |
  57 + | Repository type | SUBVERSION |
  58 + | Repository url | https://qt-calculator.svn.sourceforge.net/svnroot/qt-calculator |
  59 + And I press "Save"
  60 + Then I should see "Qt-Calculator"
  61 +