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 28 And I fill the Name field with "Kalibro"
29 29 And I fill the Description field with "Web Service to collect metrics"
30 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 33 @kalibro_restart
34 34 Scenario: configuration creation with blank name
... ...
features/mezuro_configuration/edition.feature
... ... @@ -60,7 +60,7 @@ Feature: Configuration
60 60 And I am at the sample configuration edit page
61 61 And I fill the Name field with "Qt-Calculator"
62 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 65 @kalibro_restart
66 66 Scenario: Editing just the description
... ...
features/mezuro_configuration/listing.feature
... ... @@ -3,13 +3,13 @@ Feature: Configuration listing
3 3 As a regular user
4 4 I should have various listings
5 5  
6   - Scenario: Listing configurations
  6 + Scenario: Listing configurations
7 7 Given I am at the homepage
8 8 When I click the Configuration link
9 9 Then I should see "Configurations"
10 10 And I should see "Name"
11 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 14 @kalibro_restart
15 15 Scenario: Should list the existing configurations
... ... @@ -18,7 +18,7 @@ Feature: Configuration listing
18 18 And I have a sample configuration
19 19 And I am at the All Configurations page
20 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 23 @kalibro_restart
24 24 Scenario: Should show the existing configuration
... ...
features/project/create.feature
... ... @@ -27,7 +27,7 @@ Feature: Project Creation
27 27 And I fill the Name field with "Kalibro"
28 28 And I fill the Description field with "Web Service to collect metrics"
29 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 32 Scenario: project creation with blank name
33 33 Given I am a regular user
... ...
features/project/deletion.feature
... ... @@ -23,6 +23,6 @@ Feature: Project Deletion
23 23 And I am signed in
24 24 And I own a sample project
25 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 27 Then I should be in the All Projects page
28 28 And the sample project should not be there
29 29 \ No newline at end of file
... ...
features/project/edition.feature
... ... @@ -60,7 +60,7 @@ Feature: Project
60 60 And I am at the sample project edit page
61 61 And I fill the Name field with "Qt-Calculator"
62 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 65 @kalibro_processor_restart
66 66 Scenario: Editing just the description
... ...
features/project/listing.feature
... ... @@ -9,7 +9,7 @@ Feature: Project listing
9 9 Then I should see "Projects"
10 10 And I should see "Name"
11 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 14 @kalibro_processor_restart
15 15 Scenario: Should list the existing projects
... ... @@ -18,7 +18,7 @@ Feature: Project listing
18 18 And I have a sample project
19 19 And I am at the All Projects page
20 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 23 @kalibro_processor_restart
24 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 30 And I fill the Name field with "Group"
31 31 And I fill the Description field with "Same Group"
32 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 35 @kalibro_restart
36 36 Scenario: reading group creation with blank name
... ...
features/reading_group/edit.feature
... ... @@ -60,7 +60,7 @@ Feature: Reading Group
60 60 And I am at the sample reading group edit page
61 61 And I fill the Name field with "A Reading"
62 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 65 @kalibro_restart
66 66 Scenario: Editing just the description
... ...
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 "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 21 And I click on the sample metric's name
22 22 Then I should see "Loading data. Please, wait."
23 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 26 # TODO: Scenario: Should show the graphic of a given metric
27 27 # It was getting really difficult to test this because of Poltergeist's timeouts
... ...