Fixed some more specflow tests.

This commit is contained in:
Sipke Schoorstra
2015-09-11 19:45:37 +01:00
parent db6d1912a7
commit ac8ee80b2a
4 changed files with 41 additions and 41 deletions

View File

@@ -67,7 +67,7 @@ Scenario: I can create a new blog with multiple blog posts each with the same ti
And I fill in And I fill in
| name | value | | name | value |
| Title.Title | My Post | | Title.Title | My Post |
| Autoroute.CurrentUrl | my-blog/my-post | | AutoroutePart.CurrentUrl | my-blog/my-post |
| Body.Text | Are you still there? | | Body.Text | Are you still there? |
And I hit "Publish Now" And I hit "Publish Now"
And I go to "my-blog/my-post-3" And I go to "my-blog/my-post-3"
@@ -141,7 +141,7 @@ Scenario: I set my blog to be the content for the home page and the posts for th
And I fill in And I fill in
| name | value | | name | value |
| Title.Title | My Blog | | Title.Title | My Blog |
| Autoroute.PromoteToHomePage | true | | AutoroutePart.PromoteToHomePage | true |
And I hit "Save" And I hit "Save"
And I go to "admin/blogs" And I go to "admin/blogs"
And I follow "My Blog" And I follow "My Blog"
@@ -275,20 +275,20 @@ Scenario: I can create browse blog posts on several pages
And I should not see "<h1[^>]*>.*?My Post 3.*?</h1>" And I should not see "<h1[^>]*>.*?My Post 3.*?</h1>"
Scenario: I can create a new blog with a percent sign in the title and it gets stripped out of the slug Scenario: I can create a new blog with a percent sign in the title and it gets stripped out of the slug
Given I have installed Orchard Given I have installed Orchard
When I go to "admin/blogs/create" When I go to "admin/blogs/create"
And I fill in And I fill in
| name | value | | name | value |
| Title.Title | My Blog | | Title.Title | My Blog |
And I hit "Save" And I hit "Save"
And I go to "admin/blogs" And I go to "admin/blogs"
And I follow "My Blog" And I follow "My Blog"
And I follow "New Post" where class name has "primaryAction" And I follow "New Post" where class name has "primaryAction"
And I fill in And I fill in
| name | value | | name | value |
| Title.Title | My Post with a % Sign | | Title.Title | My Post with a % Sign |
| Body.Text | Hi there. | | Body.Text | Hi there. |
And I hit "Publish Now" And I hit "Publish Now"
And I go to "my-blog/my-post-with-a-sign" And I go to "my-blog/my-post-with-a-sign"
Then I should see "<h1[^>]*>.*?My Post with a % Sign.*?</h1>" Then I should see "<h1[^>]*>.*?My Post with a % Sign.*?</h1>"
And I should see "Hi there." And I should see "Hi there."

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.34014 // Runtime Version:4.0.30319.42000
// //
// 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.
@@ -234,7 +234,7 @@ this.ScenarioSetup(scenarioInfo);
"Title.Title", "Title.Title",
"My Post"}); "My Post"});
table6.AddRow(new string[] { table6.AddRow(new string[] {
"Autoroute.CurrentUrl", "AutoroutePart.CurrentUrl",
"my-blog/my-post"}); "my-blog/my-post"});
table6.AddRow(new string[] { table6.AddRow(new string[] {
"Body.Text", "Body.Text",
@@ -449,7 +449,7 @@ this.ScenarioSetup(scenarioInfo);
"Title.Title", "Title.Title",
"My Blog"}); "My Blog"});
table12.AddRow(new string[] { table12.AddRow(new string[] {
"Autoroute.PromoteToHomePage", "AutoroutePart.PromoteToHomePage",
"true"}); "true"});
#line 141 #line 141
testRunner.And("I fill in", ((string)(null)), table12, "And "); testRunner.And("I fill in", ((string)(null)), table12, "And ");
@@ -779,9 +779,9 @@ this.ScenarioSetup(scenarioInfo);
#line 277 #line 277
this.ScenarioSetup(scenarioInfo); this.ScenarioSetup(scenarioInfo);
#line 278 #line 278
testRunner.Given("I have installed Orchard", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); testRunner.Given("I have installed Orchard", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line 279 #line 279
testRunner.When("I go to \"admin/blogs/create\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); testRunner.When("I go to \"admin/blogs/create\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line hidden #line hidden
TechTalk.SpecFlow.Table table27 = new TechTalk.SpecFlow.Table(new string[] { TechTalk.SpecFlow.Table table27 = new TechTalk.SpecFlow.Table(new string[] {
"name", "name",
@@ -790,15 +790,15 @@ this.ScenarioSetup(scenarioInfo);
"Title.Title", "Title.Title",
"My Blog"}); "My Blog"});
#line 280 #line 280
testRunner.And("I fill in", ((string)(null)), table27, "And "); testRunner.And("I fill in", ((string)(null)), table27, "And ");
#line 283 #line 283
testRunner.And("I hit \"Save\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); testRunner.And("I hit \"Save\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 284 #line 284
testRunner.And("I go to \"admin/blogs\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); testRunner.And("I go to \"admin/blogs\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 285 #line 285
testRunner.And("I follow \"My Blog\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); testRunner.And("I follow \"My Blog\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 286 #line 286
testRunner.And("I follow \"New Post\" where class name has \"primaryAction\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); testRunner.And("I follow \"New Post\" where class name has \"primaryAction\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden #line hidden
TechTalk.SpecFlow.Table table28 = new TechTalk.SpecFlow.Table(new string[] { TechTalk.SpecFlow.Table table28 = new TechTalk.SpecFlow.Table(new string[] {
"name", "name",
@@ -810,15 +810,15 @@ this.ScenarioSetup(scenarioInfo);
"Body.Text", "Body.Text",
"Hi there."}); "Hi there."});
#line 287 #line 287
testRunner.And("I fill in", ((string)(null)), table28, "And "); testRunner.And("I fill in", ((string)(null)), table28, "And ");
#line 291 #line 291
testRunner.And("I hit \"Publish Now\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); testRunner.And("I hit \"Publish Now\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 292 #line 292
testRunner.And("I go to \"my-blog/my-post-with-a-sign\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); testRunner.And("I go to \"my-blog/my-post-with-a-sign\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line 293 #line 293
testRunner.Then("I should see \"<h1[^>]*>.*?My Post with a % Sign.*?</h1>\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); testRunner.Then("I should see \"<h1[^>]*>.*?My Post with a % Sign.*?</h1>\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line 294 #line 294
testRunner.And("I should see \"Hi there.\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); testRunner.And("I should see \"Hi there.\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
#line hidden #line hidden
this.ScenarioCleanup(); this.ScenarioCleanup();
} }

View File

@@ -25,7 +25,7 @@ Scenario: In the admin (menu) there is a link to create a Page
And I fill in And I fill in
| name | value | | name | value |
| Title.Title | Super Duper | | Title.Title | Super Duper |
| LayoutPart.LayoutEditor.Data | { "type": "Content", "data": "TypeName=Orchard.Layouts.Elements.Text&Content=This+is+super+number+two", "isTemplated": false, "contentType": "Orchard.Layouts.Elements.Text", "contentTypeLabel": "Text", "contentTypeClass": "text", "html": "This is super number two", "hasEditor": true } | | AutoroutePart.LayoutEditor.Data | { "type": "Content", "data": "TypeName=Orchard.Layouts.Elements.Text&Content=This+is+super+number+two", "isTemplated": false, "contentType": "Orchard.Layouts.Elements.Text", "contentTypeLabel": "Text", "contentTypeClass": "text", "html": "This is super number two", "hasEditor": true } |
And I hit "Publish Now" And I hit "Publish Now"
And I go to "super-duper-2" And I go to "super-duper-2"
Then I should see "<h1[^>]*>.*?Super Duper.*?</h1>" Then I should see "<h1[^>]*>.*?Super Duper.*?</h1>"
@@ -36,7 +36,7 @@ Scenario: In the admin (menu) there is a link to create a Page
And I fill in And I fill in
| name | value | | name | value |
| Title.Title | Another | | Title.Title | Another |
| Autoroute.PromoteToHomePage | true | | AutoroutePart.PromoteToHomePage | true |
And I hit "Publish Now" And I hit "Publish Now"
And I go to "/" And I go to "/"
Then I should see "<h1>Another</h1>" Then I should see "<h1>Another</h1>"
@@ -48,7 +48,7 @@ Scenario: In the admin (menu) there is a link to create a Page
And I fill in And I fill in
| name | value | | name | value |
| Title.Title | Drafty | | Title.Title | Drafty |
| Autoroute.PromoteToHomePage | true | | AutoroutePart.PromoteToHomePage | true |
And I hit "Save" And I hit "Save"
And I go to "/" And I go to "/"
Then I should see "<h1>Another</h1>" Then I should see "<h1>Another</h1>"

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.0 // Runtime Version:4.0.30319.42000
// //
// 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.
@@ -110,7 +110,7 @@ this.ScenarioSetup(scenarioInfo);
"Title.Title", "Title.Title",
"Super Duper"}); "Super Duper"});
table2.AddRow(new string[] { table2.AddRow(new string[] {
"LayoutPart.LayoutEditor.Data", "AutoroutePart.LayoutEditor.Data",
@"{ ""type"": ""Content"", ""data"": ""TypeName=Orchard.Layouts.Elements.Text&Content=This+is+super+number+two"", ""isTemplated"": false, ""contentType"": ""Orchard.Layouts.Elements.Text"", ""contentTypeLabel"": ""Text"", ""contentTypeClass"": ""text"", ""html"": ""This is super number two"", ""hasEditor"": true }"}); @"{ ""type"": ""Content"", ""data"": ""TypeName=Orchard.Layouts.Elements.Text&Content=This+is+super+number+two"", ""isTemplated"": false, ""contentType"": ""Orchard.Layouts.Elements.Text"", ""contentTypeLabel"": ""Text"", ""contentTypeClass"": ""text"", ""html"": ""This is super number two"", ""hasEditor"": true }"});
#line 25 #line 25
testRunner.And("I fill in", ((string)(null)), table2, "And "); testRunner.And("I fill in", ((string)(null)), table2, "And ");
@@ -132,7 +132,7 @@ this.ScenarioSetup(scenarioInfo);
"Title.Title", "Title.Title",
"Another"}); "Another"});
table3.AddRow(new string[] { table3.AddRow(new string[] {
"Autoroute.PromoteToHomePage", "AutoroutePart.PromoteToHomePage",
"true"}); "true"});
#line 36 #line 36
testRunner.And("I fill in", ((string)(null)), table3, "And "); testRunner.And("I fill in", ((string)(null)), table3, "And ");
@@ -156,7 +156,7 @@ this.ScenarioSetup(scenarioInfo);
"Title.Title", "Title.Title",
"Drafty"}); "Drafty"});
table4.AddRow(new string[] { table4.AddRow(new string[] {
"Autoroute.PromoteToHomePage", "AutoroutePart.PromoteToHomePage",
"true"}); "true"});
#line 48 #line 48
testRunner.And("I fill in", ((string)(null)), table4, "And "); testRunner.And("I fill in", ((string)(null)), table4, "And ");