mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Fixing Tags feature spec flow test.
This commit is contained in:
@@ -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"
|
||||
|
||||
10
src/Orchard.Specs/Tags.feature.cs
generated
10
src/Orchard.Specs/Tags.feature.cs
generated
@@ -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"});
|
||||
|
||||
Reference in New Issue
Block a user