Commit 5dd4ae4722b884ef00886aed34f6c29f7c1a1b30

Authored by Alessandro Palmeira
Committed by Paulo Meireles
1 parent 94993587

[Mezuro] Fixing step "I update" to "I fill the fields"

plugins/mezuro/features/reading_group.feature
@@ -65,9 +65,9 @@ Feature: Reading Group @@ -65,9 +65,9 @@ Feature: Reading Group
65 And I am on article "Sample Reading group" 65 And I am on article "Sample Reading group"
66 And I should be on /joaosilva/sample-reading-group 66 And I should be on /joaosilva/sample-reading-group
67 And I follow "Edit" 67 And I follow "Edit"
68 - When I update this Mezuro reading group with the following data  
69 - | Title | Another Reading group |  
70 - | Description | Another Description | 68 + When I fill the fields with the new following data
  69 + | article_name | Another Reading group |
  70 + | article_description | Another Description |
71 And I press "Save" 71 And I press "Save"
72 Then I should see "Another Reading group" 72 Then I should see "Another Reading group"
73 And I should see "Another Description" 73 And I should see "Another Description"
@@ -99,9 +99,9 @@ Feature: Reading Group @@ -99,9 +99,9 @@ Feature: Reading Group
99 And I am on article "Sample Reading group" 99 And I am on article "Sample Reading group"
100 And I should be on /joaosilva/sample-reading-group 100 And I should be on /joaosilva/sample-reading-group
101 And I follow "Edit" 101 And I follow "Edit"
102 - When I update this Mezuro reading group with the following data  
103 - | Title | Another Reading group |  
104 - | Description | Another Description | 102 + When I fill the fields with the new following data
  103 + | article_name | Another Reading group |
  104 + | article_description | Another Description |
105 And I press "Save" 105 And I press "Save"
106 Then I should see "Slug The title (article name) is already being used by another article, please use another title." 106 Then I should see "Slug The title (article name) is already being used by another article, please use another title."
107 107
plugins/mezuro/features/repository.feature
@@ -16,6 +16,10 @@ Feature: Repository @@ -16,6 +16,10 @@ Feature: Repository
16 | name | Sample Project | 16 | name | Sample Project |
17 | description | Sample Description | 17 | description | Sample Description |
18 | community | mycommunity | 18 | community | mycommunity |
  19 + And I have a Mezuro configuration with the following data
  20 + | name | Sample Configuration|
  21 + | description | Sample Description |
  22 + | user | joaosilva |
19 And I am on article "Sample Project" 23 And I am on article "Sample Project"
20 And I should be on /mycommunity/sample-project 24 And I should be on /mycommunity/sample-project
21 25
@@ -31,10 +35,6 @@ Feature: Repository @@ -31,10 +35,6 @@ Feature: Repository
31 And I should see "Add" button 35 And I should see "Add" button
32 36
33 Scenario: I want to add a repository with no name 37 Scenario: I want to add a repository with no name
34 - And I have a Mezuro configuration with the following data  
35 - | name | Sample Configuration|  
36 - | description | Sample Description |  
37 - | user | joaosilva |  
38 Given I follow "Add Repository" 38 Given I follow "Add Repository"
39 When I fill the fields with the new following data 39 When I fill the fields with the new following data
40 | repository_name | | 40 | repository_name | |