Commit 76ef9750a5a6f4c4e1f05b5f19517de3d1613db2
Committed by
Diego Camarinha
1 parent
18476f8b
Exists in
colab
and in
4 other branches
Fixing acceptance tests.
Showing
13 changed files
with
36 additions
and
37 deletions
Show diff stats
app/views/projects/show.html.erb
... | ... | @@ -27,7 +27,7 @@ |
27 | 27 | <% if @project_repositories.size == 0 %> |
28 | 28 | <tr> |
29 | 29 | <% col_number = project_owner?(@project.id) ? 4 : 3 %> |
30 | - <td colspan="<%= col_number %>">There are no repositories yet!</td> | |
30 | + <td colspan="<%= col_number %>">There are no Repositories yet!</td> | |
31 | 31 | </tr> |
32 | 32 | <% end %> |
33 | 33 | <% @project_repositories.each do |repository| %> | ... | ... |
features/mezuro_range/create.feature
... | ... | @@ -32,8 +32,8 @@ Feature: Create range |
32 | 32 | And I should see "Beginning" |
33 | 33 | And I should see "End" |
34 | 34 | And I should see "Comments" |
35 | - And I should see "You must have readings in your associated reading group to create a new range." | |
36 | - And I should see "Your metric configurations' reading group belongs to another user and you are not allowed to modify it." | |
35 | + And I should see "You must have Readings within your associated Reading Group to create a new Range." | |
36 | + And I should see "The Reading Group of your Metric Configuration belongs to another user and you are not allowed to modify it." | |
37 | 37 | |
38 | 38 | @kalibro_restart |
39 | 39 | Scenario: Visiting range creation page when the user own an empty reading group (testing link to New Reading) |
... | ... | @@ -48,7 +48,7 @@ Feature: Create range |
48 | 48 | And I should see "Beginning" |
49 | 49 | And I should see "End" |
50 | 50 | And I should see "Comments" |
51 | - And I should see "You must have readings in your associated reading group to create a new range." | |
51 | + And I should see "You must have Readings within your associated Reading Group to create a new Range." | |
52 | 52 | When I click the Create New Reading link |
53 | 53 | Then I should be at the New Reading page |
54 | 54 | And I should see "Label" |
... | ... | @@ -86,7 +86,7 @@ Feature: Create range |
86 | 86 | And I set the select field "Reading" as "My Reading" |
87 | 87 | When I press the Save button |
88 | 88 | Then I should be at the New Range page |
89 | - And I should see "1 error prohibited this MezuroRange from getting saved" | |
89 | + And I should see "1 error prohibited this MezuroRange from being saved" | |
90 | 90 | And I should see "[666.0, 42.0[ is not a valid range" |
91 | 91 | |
92 | 92 | @kalibro_restart |
... | ... | @@ -104,7 +104,7 @@ Feature: Create range |
104 | 104 | And I set the select field "Reading" as "My Reading" |
105 | 105 | When I press the Save button |
106 | 106 | Then I should be at the New Range page |
107 | - And I should see "1 error prohibited this MezuroRange from getting saved" | |
107 | + And I should see "1 error prohibited this MezuroRange from being saved" | |
108 | 108 | And I should see "Beginning is not a number" |
109 | 109 | |
110 | 110 | @kalibro_restart |
... | ... | @@ -121,7 +121,7 @@ Feature: Create range |
121 | 121 | And I fill the Comments field with "My Comment" |
122 | 122 | And I set the select field "Reading" as "My Reading" |
123 | 123 | When I press the Save button |
124 | - Then I should see "1 error prohibited this MezuroRange from getting saved" | |
124 | + Then I should see "1 error prohibited this MezuroRange from being saved" | |
125 | 125 | And I should be at the New Range page |
126 | 126 | |
127 | 127 | @kalibro_restart |
... | ... | @@ -140,7 +140,7 @@ Feature: Create range |
140 | 140 | And I set the select field "Reading" as "My Reading" |
141 | 141 | When I press the Save button |
142 | 142 | Then I should be at the New Range page |
143 | - And I should see "Beginning There's already a MezuroRange with beginning 2.0! Please, choose another one." | |
143 | + And I should see "Beginning There is already a MezuroRange with beginning 2.0! Please, choose another one." | |
144 | 144 | |
145 | 145 | @kalibro_restart @javascript |
146 | 146 | Scenario: Should create range with [-INF, INF] threshold | ... | ... |
features/mezuro_range/deletion.feature
... | ... | @@ -15,7 +15,7 @@ Feature: Range Deletion |
15 | 15 | And I am at the sample metric configuration page |
16 | 16 | When I click the Destroy link |
17 | 17 | Then I should be at metric configuration sample page |
18 | - And I should see "There are no ranges yet!" | |
18 | + And I should see "There are no Ranges yet!" | |
19 | 19 | |
20 | 20 | @kalibro_restart |
21 | 21 | Scenario: Should not see the destroy range link in the range that I not own | ... | ... |
features/project/show.feature
... | ... | @@ -27,7 +27,7 @@ Scenario: Should show the create repository link the project owner |
27 | 27 | Scenario: Considering the project has no repositories |
28 | 28 | Given I have a sample project |
29 | 29 | When I am at the Sample Project page |
30 | - Then I should see "There are no repositories yet!" | |
30 | + Then I should see "There are no Repositories yet!" | |
31 | 31 | |
32 | 32 | @kalibro_restart @kalibro_processor_restart |
33 | 33 | Scenario: Considering the project has repositories |
... | ... | @@ -35,7 +35,7 @@ Scenario: Considering the project has repositories |
35 | 35 | And I have a sample configuration with native metrics |
36 | 36 | And I have a sample repository within the sample project |
37 | 37 | When I am at the Sample Project page |
38 | - Then I should not see There are no repositories yet! | |
38 | + Then I should not see There are no Repositories yet! | |
39 | 39 | |
40 | 40 | @kalibro_processor_restart |
41 | 41 | Scenario: Checking project contents | ... | ... |
features/reading/delete.feature
... | ... | @@ -11,7 +11,7 @@ Feature: Reading Deletion |
11 | 11 | And I have a sample reading within the sample reading group |
12 | 12 | When I visit the Sample Reading Group page |
13 | 13 | And I click the Destroy link |
14 | - Then I should see "There are no readings yet!" | |
14 | + Then I should see "There are no Readings yet!" | |
15 | 15 | |
16 | 16 | @kalibro_restart |
17 | 17 | Scenario: Should not see the destroy reading link in the reading groups that I not own | ... | ... |
features/reading/edit.feature
... | ... | @@ -12,11 +12,11 @@ Feature: Reading Edit |
12 | 12 | And I am at the Edit Reading page |
13 | 13 | Then the field "Label" should be filled with "Good" |
14 | 14 | And the field "Grade" should be filled with "10.5" |
15 | - And the field "Color" should be filled with "33dd33" | |
15 | + And the field "Color" should be filled with "33dd33" | |
16 | 16 | When I fill the Label field with "Bad" |
17 | 17 | And I press the Save button |
18 | 18 | Then I should see "Bad" |
19 | - | |
19 | + | |
20 | 20 | @kalibro_restart |
21 | 21 | Scenario: editing a reading with blank fields |
22 | 22 | Given I am a regular user |
... | ... | @@ -42,10 +42,10 @@ Feature: Reading Edit |
42 | 42 | And I am at the Edit Reading page |
43 | 43 | When I fill the Label field with "Average" |
44 | 44 | And I press the Save button |
45 | - Then I should see "There's already" | |
45 | + Then I should see "Label There is already a Reading with label Average! Please, choose another one." | |
46 | 46 | |
47 | - @kalibro_restart | |
48 | - Scenario: editing a reading with non numerical value | |
47 | + @kalibro_restart | |
48 | + Scenario: editing a reading with non numerical value | |
49 | 49 | Given I am a regular user |
50 | 50 | And I am signed in |
51 | 51 | And I own a sample reading group | ... | ... |
features/reading/new.feature
... | ... | @@ -27,7 +27,7 @@ Feature: New reading |
27 | 27 | And I fill the Color field with "00000ff00" |
28 | 28 | When I press the Save button |
29 | 29 | Then I should be in the Sample Reading Group page |
30 | - | |
30 | + | |
31 | 31 | @kalibro_restart @javascript |
32 | 32 | Scenario: Checking color picker existence |
33 | 33 | Given I am a regular user |
... | ... | @@ -36,7 +36,7 @@ Feature: New reading |
36 | 36 | And I am at the New Reading page |
37 | 37 | When I press the Pick color button |
38 | 38 | Then I should see a color picker Canvas |
39 | - | |
39 | + | |
40 | 40 | @kalibro_restart @javascript |
41 | 41 | Scenario: Selecting a valid color with color picker |
42 | 42 | Given I am a regular user |
... | ... | @@ -61,7 +61,7 @@ Feature: New reading |
61 | 61 | And I fill the Grade field with "1" |
62 | 62 | And I fill the Color field with "00000ff00" |
63 | 63 | When I press the Save button |
64 | - Then I should see "1 error prohibited this Reading from getting saved" | |
64 | + Then I should see "1 error prohibited this Reading from being saved" | |
65 | 65 | And I should be at the New Reading page |
66 | 66 | |
67 | 67 | # This test should get fixed with: https://github.com/mezuro/mezuro/issues/30 |
... | ... | @@ -88,6 +88,5 @@ Feature: New reading |
88 | 88 | And I fill the Grade field with "1" |
89 | 89 | And I fill the Color field with "z" |
90 | 90 | When I press the Save button |
91 | - Then I should see "1 error prohibited this Reading from getting saved" | |
91 | + Then I should see "1 error prohibited this Reading from being saved" | |
92 | 92 | And I should be at the New Reading page |
93 | - | ... | ... |
features/reading_group/create.feature
features/reading_group/edit.feature
... | ... | @@ -3,7 +3,7 @@ Feature: Reading Group |
3 | 3 | As a regular user |
4 | 4 | I should be able to edit my reading groups |
5 | 5 | |
6 | - @kalibro_restart | |
6 | + @kalibro_restart | |
7 | 7 | Scenario: Should go to the edit page from a reading group that I own |
8 | 8 | Given I am a regular user |
9 | 9 | And I am signed in |
... | ... | @@ -12,7 +12,7 @@ Feature: Reading Group |
12 | 12 | When I click the Edit link |
13 | 13 | Then I should be in the Edit Reading Group page |
14 | 14 | |
15 | - @kalibro_restart | |
15 | + @kalibro_restart | |
16 | 16 | Scenario: Should not show edit links from reading groups that doesn't belongs to me |
17 | 17 | Given I am a regular user |
18 | 18 | And I am signed in |
... | ... | @@ -20,7 +20,7 @@ Feature: Reading Group |
20 | 20 | And I am at the All Reading Groups page |
21 | 21 | Then I should not see "Edit" within "table tr td" |
22 | 22 | |
23 | - @kalibro_restart | |
23 | + @kalibro_restart | |
24 | 24 | Scenario: Should not render the edit page if the reading group doesn't belongs to the current user |
25 | 25 | Given I am a regular user |
26 | 26 | And I am signed in |
... | ... | @@ -29,7 +29,7 @@ Feature: Reading Group |
29 | 29 | When I visit the sample reading group edit page |
30 | 30 | Then I should see "You're not allowed to do this operation" |
31 | 31 | |
32 | - @kalibro_restart | |
32 | + @kalibro_restart | |
33 | 33 | Scenario: Filling up the form |
34 | 34 | Given I am a regular user |
35 | 35 | And I am signed in |
... | ... | @@ -39,7 +39,7 @@ Feature: Reading Group |
39 | 39 | Then The field "reading_group[name]" should be filled with the sample reading group "name" |
40 | 40 | And The field "reading_group[description]" should be filled with the sample reading group "description" |
41 | 41 | |
42 | - @kalibro_restart | |
42 | + @kalibro_restart | |
43 | 43 | Scenario: With valid attributes |
44 | 44 | Given I am a regular user |
45 | 45 | And I am signed in |
... | ... | @@ -51,7 +51,7 @@ Feature: Reading Group |
51 | 51 | Then I should see "My Reading Group" |
52 | 52 | And I should see "New Reading Group" |
53 | 53 | |
54 | - @kalibro_restart | |
54 | + @kalibro_restart | |
55 | 55 | Scenario: With reading group name already taken |
56 | 56 | Given I am a regular user |
57 | 57 | And I am signed in |
... | ... | @@ -62,7 +62,7 @@ Feature: Reading Group |
62 | 62 | When I press the Save button |
63 | 63 | Then I should see "There's already" |
64 | 64 | |
65 | - @kalibro_restart | |
65 | + @kalibro_restart | |
66 | 66 | Scenario: Editing just the description |
67 | 67 | Given I am a regular user |
68 | 68 | And I am signed in |
... | ... | @@ -72,7 +72,7 @@ Feature: Reading Group |
72 | 72 | When I press the Save button |
73 | 73 | Then I should see "New Reading Group" |
74 | 74 | |
75 | - @kalibro_restart | |
75 | + @kalibro_restart | |
76 | 76 | Scenario: With blank reading group name |
77 | 77 | Given I am a regular user |
78 | 78 | And I am signed in | ... | ... |
features/reading_group/show.feature
... | ... | @@ -9,7 +9,7 @@ Scenario: Should not show the create, edit and destroy reading link to user that |
9 | 9 | And I have a sample reading group |
10 | 10 | And I have a sample reading within the sample reading group |
11 | 11 | When I visit the Sample Reading Group page |
12 | - Then I should be in the Sample Reading Group page | |
12 | + Then I should be in the Sample Reading Group page | |
13 | 13 | And I should not see New Reading |
14 | 14 | And I should not see Edit |
15 | 15 | And I should not see Destroy |
... | ... | @@ -33,7 +33,7 @@ Scenario: Should show the information of the sample reading |
33 | 33 | And I have a sample reading within the sample reading group |
34 | 34 | When I visit the Sample Reading Group page |
35 | 35 | Then I should be in the Sample Reading Group page |
36 | - And I should not see There are no readings yet! | |
36 | + And I should not see There are no Readings yet! | |
37 | 37 | And I should see "Label" |
38 | 38 | And I should see "Grade" |
39 | 39 | And I should see "Color" |
... | ... | @@ -44,4 +44,4 @@ Scenario: Should show a message when there is no readings |
44 | 44 | Given I have a sample reading group |
45 | 45 | When I visit the Sample Reading Group page |
46 | 46 | Then I should be in the Sample Reading Group page |
47 | - And I should see "There are no readings yet!" | |
47 | + And I should see "There are no Readings yet!" | ... | ... |
features/repository/create.feature
... | ... | @@ -51,4 +51,4 @@ Scenario: repository creation with name already taken |
51 | 51 | And I set the select field "Process Period" as "1 day" |
52 | 52 | And I set the select field "repository_configuration_id" as "Java" |
53 | 53 | When I press the Save button |
54 | - Then I should see "There's already" | |
55 | 54 | \ No newline at end of file |
55 | + Then I should see "Name There is already a Repository with name KalibroEntities! Please, choose another one." | |
56 | 56 | \ No newline at end of file | ... | ... |
features/repository/delete.feature
... | ... | @@ -14,4 +14,4 @@ Feature: Project Deletion |
14 | 14 | And I wait up for a ready processing |
15 | 15 | When I visit the repository show page |
16 | 16 | And I click the Destroy link |
17 | - Then I should see "There are no repositories yet!" | |
18 | 17 | \ No newline at end of file |
18 | + Then I should see "There are no Repositories yet!" | |
19 | 19 | \ No newline at end of file | ... | ... |
features/repository/edit.feature
... | ... | @@ -50,4 +50,4 @@ Feature: Repository Edit |
50 | 50 | And I am at repository edit page |
51 | 51 | When I fill the Name field with "MedSquare" |
52 | 52 | And I press the Save button |
53 | - Then I should see "There's already" | |
53 | + Then I should see "Name There is already a Repository with name KalibroEntities! Please, choose another one." | ... | ... |