Commit 75e872216c9e5baef3484656bef6c49c52326ebd
1 parent
7061d674
Exists in
colab
and in
4 other branches
Project acceptance tests refactored into several files
Showing
5 changed files
with
110 additions
and
98 deletions
Show diff stats
features/project.feature
... | ... | @@ -1,98 +0,0 @@ |
1 | -Feature: Project | |
2 | - In Order to have a good interaction with the website | |
3 | - As a regular user | |
4 | - I should see and manage projects | |
5 | - | |
6 | - Scenario: Listing projects | |
7 | - Given I am at the homepage | |
8 | - When I click the All Projects link | |
9 | - Then I should see Listing Projects | |
10 | - And I should see Name | |
11 | - And I should see Description | |
12 | - | |
13 | - # This will fail until do the authentication to project. | |
14 | - @wip | |
15 | - Scenario: Should not create project without login | |
16 | - Given I am at the All Projects page | |
17 | - Then I should not see New Project | |
18 | - | |
19 | - @kalibro_restart | |
20 | - Scenario: project creation | |
21 | - Given I am a regular user | |
22 | - And I am signed in | |
23 | - And I am at the New Project page | |
24 | - And I fill the Name field with Kalibro | |
25 | - And I fill the Description field with Web Service to collect metrics | |
26 | - When I press the Create Project button | |
27 | - Then I should see Kalibro | |
28 | - And I should see Web Service to collect metrics | |
29 | - | |
30 | - @kalibro_restart | |
31 | - Scenario: Should list the existing projects | |
32 | - Given I am a regular user | |
33 | - And I am signed in | |
34 | - And I have a sample project | |
35 | - And I am at the All Projects page | |
36 | - Then the sample project should be there | |
37 | - | |
38 | - @kalibro_restart | |
39 | - Scenario: Should show the existing project | |
40 | - Given I am a regular user | |
41 | - And I am signed in | |
42 | - And I have a sample project | |
43 | - And I am at the All Projects page | |
44 | - When I click the Show link | |
45 | - Then I should see Name | |
46 | - And I should see Description | |
47 | - And I should see Back | |
48 | - And the sample project should be there | |
49 | - | |
50 | - @wip @kalibro_restart | |
51 | - Scenario: Should go back to the All Projects page from show project view | |
52 | - Given I am a regular user | |
53 | - And I am signed in | |
54 | - And I have a sample project | |
55 | - And I am at the Sample Project page | |
56 | - When I click the Back link | |
57 | - Then I should be in the All Projects page | |
58 | - | |
59 | - @kalibro_restart | |
60 | - Scenario: Should go to edit form from All Projects page | |
61 | - Given I am a regular user | |
62 | - And I am signed in | |
63 | - And I have a sample project | |
64 | - And I am at the All Projects page | |
65 | - When I click the Edit link | |
66 | - Then I should be in the Edit Project page | |
67 | - | |
68 | - @kalibro_restart | |
69 | - Scenario: Should delete a project | |
70 | - Given I am a regular user | |
71 | - And I am signed in | |
72 | - And I have a sample project | |
73 | - And I am at the Sample Project page | |
74 | - When I click the Destroy link | |
75 | - Then I should be in the All Projects page | |
76 | - And the sample project should not be there | |
77 | - | |
78 | - @kalibro_restart | |
79 | - Scenario: Should have the content filled in form | |
80 | - Given I am a regular user | |
81 | - And I am signed in | |
82 | - And I have a sample project | |
83 | - And I am at the All Projects page | |
84 | - When I click the Edit link | |
85 | - Then The field "project[name]" should be filled with the sample project "name" | |
86 | - And The field "project[description]" should be filled with the sample project "description" | |
87 | - | |
88 | - @kalibro_restart | |
89 | - Scenario: After project edition should update the information | |
90 | - Given I am a regular user | |
91 | - And I am signed in | |
92 | - And I have a sample project | |
93 | - And I am at the sample project edit page | |
94 | - And I fill the Name field with Kalibro | |
95 | - And I fill the Description field with Web Service to collect metrics | |
96 | - When I press the Update button | |
97 | - Then I should see Kalibro | |
98 | - And I should see Web Service to collect metrics | |
99 | 0 | \ No newline at end of file |
... | ... | @@ -0,0 +1,21 @@ |
1 | +Feature: Project Creation | |
2 | + In order to register my projects | |
3 | + As a regular user | |
4 | + I should be able to create projects | |
5 | + | |
6 | + # This will fail until do the authentication to project. | |
7 | + @wip | |
8 | + Scenario: Should not create project without login | |
9 | + Given I am at the All Projects page | |
10 | + Then I should not see New Project | |
11 | + | |
12 | + @kalibro_restart | |
13 | + Scenario: project creation | |
14 | + Given I am a regular user | |
15 | + And I am signed in | |
16 | + And I am at the New Project page | |
17 | + And I fill the Name field with Kalibro | |
18 | + And I fill the Description field with Web Service to collect metrics | |
19 | + When I press the Create Project button | |
20 | + Then I should see Kalibro | |
21 | + And I should see Web Service to collect metrics | |
0 | 22 | \ No newline at end of file | ... | ... |
... | ... | @@ -0,0 +1,14 @@ |
1 | +Feature: Project Deletion | |
2 | + In order to be able to remove projects | |
3 | + As a regular user | |
4 | + The system should have an interface to it | |
5 | + | |
6 | + @kalibro_restart | |
7 | + Scenario: Should delete a project | |
8 | + Given I am a regular user | |
9 | + And I am signed in | |
10 | + And I have a sample project | |
11 | + And I am at the Sample Project page | |
12 | + When I click the Destroy link | |
13 | + Then I should be in the All Projects page | |
14 | + And the sample project should not be there | |
0 | 15 | \ No newline at end of file | ... | ... |
... | ... | @@ -0,0 +1,35 @@ |
1 | +Feature: Project | |
2 | + In Order to be able to update my projects info | |
3 | + As a regular user | |
4 | + I should be able to edit my projects | |
5 | + | |
6 | + @kalibro_restart | |
7 | + Scenario: Should go to edit form from All Projects page | |
8 | + Given I am a regular user | |
9 | + And I am signed in | |
10 | + And I have a sample project | |
11 | + And I am at the All Projects page | |
12 | + When I click the Edit link | |
13 | + Then I should be in the Edit Project page | |
14 | + | |
15 | + @kalibro_restart | |
16 | + Scenario: Should have the content filled in form | |
17 | + Given I am a regular user | |
18 | + And I am signed in | |
19 | + And I have a sample project | |
20 | + And I am at the All Projects page | |
21 | + When I click the Edit link | |
22 | + Then The field "project[name]" should be filled with the sample project "name" | |
23 | + And The field "project[description]" should be filled with the sample project "description" | |
24 | + | |
25 | + @kalibro_restart | |
26 | + Scenario: After project edition should update the information | |
27 | + Given I am a regular user | |
28 | + And I am signed in | |
29 | + And I have a sample project | |
30 | + And I am at the sample project edit page | |
31 | + And I fill the Name field with Kalibro | |
32 | + And I fill the Description field with Web Service to collect metrics | |
33 | + When I press the Update button | |
34 | + Then I should see Kalibro | |
35 | + And I should see Web Service to collect metrics | |
0 | 36 | \ No newline at end of file | ... | ... |
... | ... | @@ -0,0 +1,40 @@ |
1 | +Feature: Project listing | |
2 | + In order to interact with other projects | |
3 | + As a regular user | |
4 | + I should have various listings | |
5 | + | |
6 | + Scenario: Listing projects | |
7 | + Given I am at the homepage | |
8 | + When I click the All Projects link | |
9 | + Then I should see Listing Projects | |
10 | + And I should see Name | |
11 | + And I should see Description | |
12 | + | |
13 | + @kalibro_restart | |
14 | + Scenario: Should list the existing projects | |
15 | + Given I am a regular user | |
16 | + And I am signed in | |
17 | + And I have a sample project | |
18 | + And I am at the All Projects page | |
19 | + Then the sample project should be there | |
20 | + | |
21 | + @kalibro_restart | |
22 | + Scenario: Should show the existing project | |
23 | + Given I am a regular user | |
24 | + And I am signed in | |
25 | + And I have a sample project | |
26 | + And I am at the All Projects page | |
27 | + When I click the Show link | |
28 | + Then I should see Name | |
29 | + And I should see Description | |
30 | + And I should see Back | |
31 | + And the sample project should be there | |
32 | + | |
33 | + @wip @kalibro_restart | |
34 | + Scenario: Should go back to the All Projects page from show project view | |
35 | + Given I am a regular user | |
36 | + And I am signed in | |
37 | + And I have a sample project | |
38 | + And I am at the Sample Project page | |
39 | + When I click the Back link | |
40 | + Then I should be in the All Projects page | |
0 | 41 | \ No newline at end of file | ... | ... |