mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Fixing Comments specflow test
--HG-- branch : 1.x
This commit is contained in:
@@ -65,9 +65,11 @@ Scenario: Moderated comments are not displayed
|
||||
And I hit "Save"
|
||||
And I am redirected
|
||||
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
|
||||
| name | value |
|
||||
| Comments.Author | Bill |
|
||||
| Comments.CommentText | This is a moderated comment. |
|
||||
And I hit "Submit Comment"
|
||||
And I am redirected
|
||||
|
21
src/Orchard.Specs/Comments.feature.cs
generated
21
src/Orchard.Specs/Comments.feature.cs
generated
@@ -220,25 +220,30 @@ this.ScenarioSetup(scenarioInfo);
|
||||
#line 67
|
||||
testRunner.Then("I should see \"Settings updated\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
|
||||
#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
|
||||
TechTalk.SpecFlow.Table table8 = new TechTalk.SpecFlow.Table(new string[] {
|
||||
"name",
|
||||
"value"});
|
||||
table8.AddRow(new string[] {
|
||||
"Comments.Author",
|
||||
"Bill"});
|
||||
table8.AddRow(new string[] {
|
||||
"Comments.CommentText",
|
||||
"This is a moderated comment."});
|
||||
#line 69
|
||||
#line 70
|
||||
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 ");
|
||||
#line 73
|
||||
testRunner.And("I am redirected", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
|
||||
#line 75
|
||||
testRunner.And("I go to \"my-blog/my-post\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
|
||||
#line 76
|
||||
testRunner.Then("I should see \"Hi there\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
|
||||
testRunner.And("I am redirected", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
|
||||
#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 ");
|
||||
#line hidden
|
||||
this.ScenarioCleanup();
|
||||
|
Reference in New Issue
Block a user