Fixing comments unit tests

--HG--
branch : 1.x
This commit is contained in:
Sebastien Ros
2013-02-28 12:19:15 -08:00
parent 83e4392f02
commit ffc7b4744f
2 changed files with 7 additions and 7 deletions

View File

@@ -21,7 +21,7 @@ Scenario: HTML markup in any given comment is encoded
And I go to "my-blog/my-post" And I go to "my-blog/my-post"
And I fill in And I fill in
| name | value | | name | value |
| CommentText | This is<br id="bad-br" />a <a href="#">link</a>. | | Comments.CommentText | This is<br id="bad-br" />a <a href="#">link</a>. |
And I hit "Submit Comment" And I hit "Submit Comment"
And I am redirected And I am redirected
# because the ToUrlString extension method breaks in this specific (test) environment, the returnUrl is broken... # because the ToUrlString extension method breaks in this specific (test) environment, the returnUrl is broken...
@@ -34,8 +34,8 @@ Scenario: HTML markup in any given comment is encoded
And I go to "my-blog/my-post" And I go to "my-blog/my-post"
And I fill in And I fill in
| name | value | | name | value |
| Name | Some One | | Comments.Author | Some One |
| CommentText | This is<br id="bad-anon-br" />a <a href="#">link</a>. | | Comments.CommentText | This is<br id="bad-anon-br" />a <a href="#">link</a>. |
And I hit "Submit Comment" And I hit "Submit Comment"
And I am redirected And I am redirected
# because the ToUrlString extension method breaks in this specific (test) environment, the returnUrl is broken... # because the ToUrlString extension method breaks in this specific (test) environment, the returnUrl is broken...

View File

@@ -3,7 +3,7 @@
// This code was generated by SpecFlow (http://www.specflow.org/). // This code was generated by SpecFlow (http://www.specflow.org/).
// SpecFlow Version:1.9.0.77 // SpecFlow Version:1.9.0.77
// SpecFlow Generator Version:1.9.0.0 // SpecFlow Generator Version:1.9.0.0
// Runtime Version:4.0.30319.18003 // Runtime Version:4.0.30319.18010
// //
// Changes to this file may cause incorrect behavior and will be lost if // Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated. // the code is regenerated.
@@ -114,7 +114,7 @@ this.ScenarioSetup(scenarioInfo);
"name", "name",
"value"}); "value"});
table3.AddRow(new string[] { table3.AddRow(new string[] {
"CommentText", "Comments.CommentText",
"This is<br id=\"bad-br\" />a <a href=\"#\">link</a>."}); "This is<br id=\"bad-br\" />a <a href=\"#\">link</a>."});
#line 22 #line 22
testRunner.And("I fill in", ((string)(null)), table3, "And "); testRunner.And("I fill in", ((string)(null)), table3, "And ");
@@ -139,10 +139,10 @@ this.ScenarioSetup(scenarioInfo);
"name", "name",
"value"}); "value"});
table4.AddRow(new string[] { table4.AddRow(new string[] {
"Name", "Comments.Author",
"Some One"}); "Some One"});
table4.AddRow(new string[] { table4.AddRow(new string[] {
"CommentText", "Comments.CommentText",
"This is<br id=\"bad-anon-br\" />a <a href=\"#\">link</a>."}); "This is<br id=\"bad-anon-br\" />a <a href=\"#\">link</a>."});
#line 35 #line 35
testRunner.And("I fill in", ((string)(null)), table4, "And "); testRunner.And("I fill in", ((string)(null)), table4, "And ");