Commit 4cd09d9f257e09ce978552db9e7d18bfc03cbbf8

Authored by Daniel Alves
Committed by Diego Camarinha
1 parent 76ef9750

Fixed acceptance tests.

Signed off by: Diego Araújo <diegoamc90@gmail.com>
features/mezuro_configuration/create.feature
@@ -28,7 +28,7 @@ Feature: Configuration Creation @@ -28,7 +28,7 @@ Feature: Configuration Creation
28 And I fill the Name field with "Kalibro" 28 And I fill the Name field with "Kalibro"
29 And I fill the Description field with "Web Service to collect metrics" 29 And I fill the Description field with "Web Service to collect metrics"
30 When I press the Save button 30 When I press the Save button
31 - Then I should see "There's already" 31 + Then I should see "Name There is already a MezuroConfiguration with name Kalibro!"
32 32
33 @kalibro_restart 33 @kalibro_restart
34 Scenario: configuration creation with blank name 34 Scenario: configuration creation with blank name
features/mezuro_configuration/edition.feature
@@ -60,7 +60,7 @@ Feature: Configuration @@ -60,7 +60,7 @@ Feature: Configuration
60 And I am at the sample configuration edit page 60 And I am at the sample configuration edit page
61 And I fill the Name field with "Qt-Calculator" 61 And I fill the Name field with "Qt-Calculator"
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 "Name There is already a MezuroConfiguration with name Qt-Calculator!"
64 64
65 @kalibro_restart 65 @kalibro_restart
66 Scenario: Editing just the description 66 Scenario: Editing just the description
features/mezuro_configuration/listing.feature
@@ -3,13 +3,13 @@ Feature: Configuration listing @@ -3,13 +3,13 @@ Feature: Configuration listing
3 As a regular user 3 As a regular user
4 I should have various listings 4 I should have various listings
5 5
6 - Scenario: Listing configurations 6 + Scenario: Listing configurations
7 Given I am at the homepage 7 Given I am at the homepage
8 When I click the Configuration link 8 When I click the Configuration link
9 Then I should see "Configurations" 9 Then I should see "Configurations"
10 And I should see "Name" 10 And I should see "Name"
11 And I should see "Description" 11 And I should see "Description"
12 - And I should see "To create new configurations you must be logged in page." 12 + And I should see "You must be logged in to create new Configurations."
13 13
14 @kalibro_restart 14 @kalibro_restart
15 Scenario: Should list the existing configurations 15 Scenario: Should list the existing configurations
@@ -18,7 +18,7 @@ Feature: Configuration listing @@ -18,7 +18,7 @@ Feature: Configuration listing
18 And I have a sample configuration 18 And I have a sample configuration
19 And I am at the All Configurations page 19 And I am at the All Configurations page
20 Then the sample configuration should be there 20 Then the sample configuration should be there
21 - And I should not see "To create new configurations you must be logged in page." 21 + And I should not see "You must be logged in to create new Configurations."
22 22
23 @kalibro_restart 23 @kalibro_restart
24 Scenario: Should show the existing configuration 24 Scenario: Should show the existing configuration
features/project/create.feature
@@ -27,7 +27,7 @@ Feature: Project Creation @@ -27,7 +27,7 @@ Feature: Project Creation
27 And I fill the Name field with "Kalibro" 27 And I fill the Name field with "Kalibro"
28 And I fill the Description field with "Web Service to collect metrics" 28 And I fill the Description field with "Web Service to collect metrics"
29 When I press the Save button 29 When I press the Save button
30 - Then I should see "There's already" 30 + Then I should see "Name There is already a Project with name Kalibro!"
31 31
32 Scenario: project creation with blank name 32 Scenario: project creation with blank name
33 Given I am a regular user 33 Given I am a regular user
features/project/deletion.feature
@@ -23,6 +23,6 @@ Feature: Project Deletion @@ -23,6 +23,6 @@ Feature: Project Deletion
23 And I am signed in 23 And I am signed in
24 And I own a sample project 24 And I own a sample project
25 And I am at the Sample Project page 25 And I am at the Sample Project page
26 - When I click the Destroy project link 26 + When I click the Destroy Project link
27 Then I should be in the All Projects page 27 Then I should be in the All Projects page
28 And the sample project should not be there 28 And the sample project should not be there
29 \ No newline at end of file 29 \ No newline at end of file
features/project/edition.feature
@@ -60,7 +60,7 @@ Feature: Project @@ -60,7 +60,7 @@ Feature: Project
60 And I am at the sample project edit page 60 And I am at the sample project edit page
61 And I fill the Name field with "Qt-Calculator" 61 And I fill the Name field with "Qt-Calculator"
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 "Name There is already a Project with name Qt-Calculator!"
64 64
65 @kalibro_processor_restart 65 @kalibro_processor_restart
66 Scenario: Editing just the description 66 Scenario: Editing just the description
features/project/listing.feature
@@ -9,7 +9,7 @@ Feature: Project listing @@ -9,7 +9,7 @@ Feature: Project listing
9 Then I should see "Projects" 9 Then I should see "Projects"
10 And I should see "Name" 10 And I should see "Name"
11 And I should see "Description" 11 And I should see "Description"
12 - And I should see "To create new projects you must be logged in page." 12 + And I should see "You must be logged in to create new Projects."
13 13
14 @kalibro_processor_restart 14 @kalibro_processor_restart
15 Scenario: Should list the existing projects 15 Scenario: Should list the existing projects
@@ -18,7 +18,7 @@ Feature: Project listing @@ -18,7 +18,7 @@ Feature: Project listing
18 And I have a sample project 18 And I have a sample project
19 And I am at the All Projects page 19 And I am at the All Projects page
20 Then the sample project should be there 20 Then the sample project should be there
21 - And I should not see "To create new projects you must be logged in page." 21 + And I should not see "You must be logged in to create new Projects."
22 22
23 @kalibro_processor_restart 23 @kalibro_processor_restart
24 Scenario: Should show the existing project 24 Scenario: Should show the existing project
features/reading_group/create.feature
@@ -30,7 +30,7 @@ Scenario: reading group creation with already taken name @@ -30,7 +30,7 @@ Scenario: reading group creation with already taken name
30 And I fill the Name field with "Group" 30 And I fill the Name field with "Group"
31 And I fill the Description field with "Same Group" 31 And I fill the Description field with "Same Group"
32 When I press the Save button 32 When I press the Save button
33 - Then I should see "There's already" 33 + Then I should see "Name There is already a ReadingGroup with name Group!"
34 34
35 @kalibro_restart 35 @kalibro_restart
36 Scenario: reading group creation with blank name 36 Scenario: reading group creation with blank name
features/reading_group/edit.feature
@@ -60,7 +60,7 @@ Feature: Reading Group @@ -60,7 +60,7 @@ Feature: Reading Group
60 And I am at the sample reading group edit page 60 And I am at the sample reading group edit page
61 And I fill the Name field with "A Reading" 61 And I fill the Name field with "A Reading"
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 "Name There is already a ReadingGroup with name A Reading!"
64 64
65 @kalibro_restart 65 @kalibro_restart
66 Scenario: Editing just the description 66 Scenario: Editing just the description
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 "Name There is already a Repository with name KalibroEntities! Please, choose another one." 53 + Then I should see "Name There is already a Repository with name MedSquare! Please, choose another one."
features/repository/show/metric_results.feature
@@ -21,7 +21,7 @@ Feature: Repository metric results @@ -21,7 +21,7 @@ Feature: Repository metric results
21 And I click on the sample metric's name 21 And I click on the sample metric's name
22 Then I should see "Loading data. Please, wait." 22 Then I should see "Loading data. Please, wait."
23 When I wait up for the ajax request 23 When I wait up for the ajax request
24 - Then I should see "There is just a point and it should not be printed into a chart." 24 + Then I should see "There is only one point and it will not be printed into a chart."
25 25
26 # TODO: Scenario: Should show the graphic of a given metric 26 # TODO: Scenario: Should show the graphic of a given metric
27 # It was getting really difficult to test this because of Poltergeist's timeouts 27 # It was getting really difficult to test this because of Poltergeist's timeouts