Fixing Comments specflow test

--HG--
branch : 1.x
This commit is contained in:
Sebastien Ros
2013-03-18 12:25:58 -07:00
parent d3153b2577
commit f6db035a2c
2 changed files with 16 additions and 9 deletions

View File

@@ -65,9 +65,11 @@ Scenario: Moderated comments are not displayed
And I hit "Save" And I hit "Save"
And I am redirected And I am redirected
Then I should see "Settings updated" Then I should see "Settings updated"
When I go to "my-blog/my-post" When I go to "users/account/logoff"
And I go to "my-blog/my-post"
And I fill in And I fill in
| name | value | | name | value |
| Comments.Author | Bill |
| Comments.CommentText | This is a moderated comment. | | Comments.CommentText | This is a moderated comment. |
And I hit "Submit Comment" And I hit "Submit Comment"
And I am redirected And I am redirected

View File

@@ -220,25 +220,30 @@ this.ScenarioSetup(scenarioInfo);
#line 67 #line 67
testRunner.Then("I should see \"Settings updated\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); testRunner.Then("I should see \"Settings updated\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line 68 #line 68
testRunner.When("I go to \"my-blog/my-post\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); testRunner.When("I go to \"users/account/logoff\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line 69
testRunner.And("I go to \"my-blog/my-post\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden #line hidden
TechTalk.SpecFlow.Table table8 = new TechTalk.SpecFlow.Table(new string[] { TechTalk.SpecFlow.Table table8 = new TechTalk.SpecFlow.Table(new string[] {
"name", "name",
"value"}); "value"});
table8.AddRow(new string[] {
"Comments.Author",
"Bill"});
table8.AddRow(new string[] { table8.AddRow(new string[] {
"Comments.CommentText", "Comments.CommentText",
"This is a moderated comment."}); "This is a moderated comment."});
#line 69 #line 70
testRunner.And("I fill in", ((string)(null)), table8, "And "); testRunner.And("I fill in", ((string)(null)), table8, "And ");
#line 72 #line 74
testRunner.And("I hit \"Submit Comment\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); testRunner.And("I hit \"Submit Comment\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 73
testRunner.And("I am redirected", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 75 #line 75
testRunner.And("I go to \"my-blog/my-post\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); testRunner.And("I am redirected", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 76
testRunner.Then("I should see \"Hi there\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line 77 #line 77
testRunner.And("I go to \"my-blog/my-post\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 78
testRunner.Then("I should see \"Hi there\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line 79
testRunner.And("I should not see \"This is a moderated comment\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); testRunner.And("I should not see \"This is a moderated comment\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden #line hidden
this.ScenarioCleanup(); this.ScenarioCleanup();