Fixing Tags feature spec flow test.

This commit is contained in:
Sipke Schoorstra
2014-11-20 19:16:25 -08:00
parent 1732090e11
commit 88d165e31c
2 changed files with 8 additions and 6 deletions

View File

@@ -9,7 +9,7 @@ Scenario: I can add a tag to a new Page
And I fill in
| name | value |
| Title.Title | Super Duper |
| Body.Text | This is super. |
| LayoutPart.State | { "elements": [ { "typeName": "Orchard.Layouts.Elements.Text", "state": "Content=This+is+super."} ] } |
| Tags.Tags | Foo, Bar |
And I hit "Publish Now"
And I go to "super-duper"
@@ -23,7 +23,7 @@ Scenario: I can't add a tag with disallowed chars to a new Page
And I fill in
| name | value |
| Title.Title | Super Duper |
| Body.Text | This is super. |
| LayoutPart.State | { "elements": [ { "typeName": "Orchard.Layouts.Elements.Text", "state": "Content=This+is+super."} ] } |
| Tags.Tags | Foo, I <3 Orchard |
And I hit "Publish Now"
And I go to "super-duper"

View File

@@ -84,8 +84,9 @@ this.ScenarioSetup(scenarioInfo);
"Title.Title",
"Super Duper"});
table1.AddRow(new string[] {
"Body.Text",
"This is super."});
"LayoutPart.State",
"{ \"elements\": [ { \"typeName\": \"Orchard.Layouts.Elements.Text\", \"state\": \"Content=" +
"This+is+super.\"} ] }"});
table1.AddRow(new string[] {
"Tags.Tags",
"Foo, Bar"});
@@ -124,8 +125,9 @@ this.ScenarioSetup(scenarioInfo);
"Title.Title",
"Super Duper"});
table2.AddRow(new string[] {
"Body.Text",
"This is super."});
"LayoutPart.State",
"{ \"elements\": [ { \"typeName\": \"Orchard.Layouts.Elements.Text\", \"state\": \"Content=" +
"This+is+super.\"} ] }"});
table2.AddRow(new string[] {
"Tags.Tags",
"Foo, I <3 Orchard"});