Commit 76ef9750a5a6f4c4e1f05b5f19517de3d1613db2

Authored by Daniel Alves
Committed by Diego Camarinha
1 parent 18476f8b

Fixing acceptance tests.

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