mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Fixing Media Field specflow tests
--HG-- branch : 1.x extra : rebase_source : 56a8f64f0a20a323afea247ae42d29fafddc8fe6
This commit is contained in:
@@ -40,9 +40,6 @@ Scenario: Creating and using media fields
|
|||||||
And I hit "Save"
|
And I hit "Save"
|
||||||
And I am redirected
|
And I am redirected
|
||||||
Then I should see "Your Event has been created."
|
Then I should see "Your Event has been created."
|
||||||
When I go to "Admin/Contents/List"
|
|
||||||
Then I should see "File:"
|
|
||||||
And I should see ""
|
|
||||||
|
|
||||||
# The hint should be displayed
|
# The hint should be displayed
|
||||||
When I go to "Admin/ContentTypes/Edit/Event"
|
When I go to "Admin/ContentTypes/Edit/Event"
|
||||||
@@ -78,4 +75,4 @@ Scenario: Creating and using media fields
|
|||||||
| name | value |
|
| name | value |
|
||||||
| Event.File.Url | ~/Media/Default/images/Image.png |
|
| Event.File.Url | ~/Media/Default/images/Image.png |
|
||||||
And I hit "Save"
|
And I hit "Save"
|
||||||
Then I should see "The field File must be have one of these extensions: jpg"
|
Then I should see "The field File must have one of these extensions: jpg"
|
@@ -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.17929
|
// 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.
|
||||||
@@ -144,13 +144,7 @@ this.ScenarioSetup(scenarioInfo);
|
|||||||
testRunner.And("I am redirected", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
|
testRunner.And("I am redirected", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
|
||||||
#line 42
|
#line 42
|
||||||
testRunner.Then("I should see \"Your Event has been created.\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
|
testRunner.Then("I should see \"Your Event has been created.\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
|
||||||
#line 43
|
|
||||||
testRunner.When("I go to \"Admin/Contents/List\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
|
|
||||||
#line 44
|
|
||||||
testRunner.Then("I should see \"File:\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
|
|
||||||
#line 45
|
#line 45
|
||||||
testRunner.And("I should see \"\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
|
|
||||||
#line 48
|
|
||||||
testRunner.When("I go to \"Admin/ContentTypes/Edit/Event\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
|
testRunner.When("I go to \"Admin/ContentTypes/Edit/Event\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
|
||||||
#line hidden
|
#line hidden
|
||||||
TechTalk.SpecFlow.Table table4 = new TechTalk.SpecFlow.Table(new string[] {
|
TechTalk.SpecFlow.Table table4 = new TechTalk.SpecFlow.Table(new string[] {
|
||||||
@@ -159,15 +153,15 @@ this.ScenarioSetup(scenarioInfo);
|
|||||||
table4.AddRow(new string[] {
|
table4.AddRow(new string[] {
|
||||||
"Fields[0].MediaPickerFieldSettings.Hint",
|
"Fields[0].MediaPickerFieldSettings.Hint",
|
||||||
"Please select a file"});
|
"Please select a file"});
|
||||||
#line 49
|
#line 46
|
||||||
testRunner.And("I fill in", ((string)(null)), table4, "And ");
|
testRunner.And("I fill in", ((string)(null)), table4, "And ");
|
||||||
#line 52
|
#line 49
|
||||||
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 53
|
#line 50
|
||||||
testRunner.And("I go to \"Admin/Contents/Create/Event\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
|
testRunner.And("I go to \"Admin/Contents/Create/Event\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
|
||||||
#line 54
|
#line 51
|
||||||
testRunner.Then("I should see \"Please select a file\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
|
testRunner.Then("I should see \"Please select a file\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
|
||||||
#line 57
|
#line 54
|
||||||
testRunner.When("I go to \"Admin/ContentTypes/Edit/Event\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
|
testRunner.When("I go to \"Admin/ContentTypes/Edit/Event\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
|
||||||
#line hidden
|
#line hidden
|
||||||
TechTalk.SpecFlow.Table table5 = new TechTalk.SpecFlow.Table(new string[] {
|
TechTalk.SpecFlow.Table table5 = new TechTalk.SpecFlow.Table(new string[] {
|
||||||
@@ -176,11 +170,11 @@ this.ScenarioSetup(scenarioInfo);
|
|||||||
table5.AddRow(new string[] {
|
table5.AddRow(new string[] {
|
||||||
"Fields[0].MediaPickerFieldSettings.Required",
|
"Fields[0].MediaPickerFieldSettings.Required",
|
||||||
"true"});
|
"true"});
|
||||||
#line 58
|
#line 55
|
||||||
testRunner.And("I fill in", ((string)(null)), table5, "And ");
|
testRunner.And("I fill in", ((string)(null)), table5, "And ");
|
||||||
#line 61
|
#line 58
|
||||||
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 62
|
#line 59
|
||||||
testRunner.And("I go to \"Admin/Contents/Create/Event\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
|
testRunner.And("I go to \"Admin/Contents/Create/Event\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
|
||||||
#line hidden
|
#line hidden
|
||||||
TechTalk.SpecFlow.Table table6 = new TechTalk.SpecFlow.Table(new string[] {
|
TechTalk.SpecFlow.Table table6 = new TechTalk.SpecFlow.Table(new string[] {
|
||||||
@@ -189,13 +183,13 @@ this.ScenarioSetup(scenarioInfo);
|
|||||||
table6.AddRow(new string[] {
|
table6.AddRow(new string[] {
|
||||||
"Event.File.Url",
|
"Event.File.Url",
|
||||||
""});
|
""});
|
||||||
#line 63
|
#line 60
|
||||||
testRunner.And("I fill in", ((string)(null)), table6, "And ");
|
testRunner.And("I fill in", ((string)(null)), table6, "And ");
|
||||||
#line 66
|
#line 63
|
||||||
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 67
|
#line 64
|
||||||
testRunner.Then("I should see \"The field File is mandatory.\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
|
testRunner.Then("I should see \"The field File is mandatory.\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
|
||||||
#line 70
|
#line 67
|
||||||
testRunner.When("I go to \"Admin/ContentTypes/Edit/Event\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
|
testRunner.When("I go to \"Admin/ContentTypes/Edit/Event\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
|
||||||
#line hidden
|
#line hidden
|
||||||
TechTalk.SpecFlow.Table table7 = new TechTalk.SpecFlow.Table(new string[] {
|
TechTalk.SpecFlow.Table table7 = new TechTalk.SpecFlow.Table(new string[] {
|
||||||
@@ -207,11 +201,11 @@ this.ScenarioSetup(scenarioInfo);
|
|||||||
table7.AddRow(new string[] {
|
table7.AddRow(new string[] {
|
||||||
"Fields[0].MediaPickerFieldSettings.AllowedExtensions",
|
"Fields[0].MediaPickerFieldSettings.AllowedExtensions",
|
||||||
"jpg"});
|
"jpg"});
|
||||||
#line 71
|
#line 68
|
||||||
testRunner.And("I fill in", ((string)(null)), table7, "And ");
|
testRunner.And("I fill in", ((string)(null)), table7, "And ");
|
||||||
#line 75
|
#line 72
|
||||||
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 76
|
#line 73
|
||||||
testRunner.And("I go to \"Admin/Contents/Create/Event\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
|
testRunner.And("I go to \"Admin/Contents/Create/Event\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And ");
|
||||||
#line hidden
|
#line hidden
|
||||||
TechTalk.SpecFlow.Table table8 = new TechTalk.SpecFlow.Table(new string[] {
|
TechTalk.SpecFlow.Table table8 = new TechTalk.SpecFlow.Table(new string[] {
|
||||||
@@ -220,12 +214,12 @@ this.ScenarioSetup(scenarioInfo);
|
|||||||
table8.AddRow(new string[] {
|
table8.AddRow(new string[] {
|
||||||
"Event.File.Url",
|
"Event.File.Url",
|
||||||
"~/Media/Default/images/Image.png"});
|
"~/Media/Default/images/Image.png"});
|
||||||
#line 77
|
#line 74
|
||||||
testRunner.And("I fill in", ((string)(null)), table8, "And ");
|
testRunner.And("I fill in", ((string)(null)), table8, "And ");
|
||||||
#line 80
|
#line 77
|
||||||
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 81
|
#line 78
|
||||||
testRunner.Then("I should see \"The field File must be have one of these extensions: jpg\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
|
testRunner.Then("I should see \"The field File must have one of these extensions: jpg\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
|
||||||
#line hidden
|
#line hidden
|
||||||
this.ScenarioCleanup();
|
this.ScenarioCleanup();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user