mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Replacing tabs in spec flow tests.
--HG-- branch : dev
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
Feature: The Admin side of the app
|
||||
In order to manage my site
|
||||
As a privileged user
|
||||
I want to not have my cheese moved in the admin
|
||||
In order to manage my site
|
||||
As a privileged user
|
||||
I want to not have my cheese moved in the admin
|
||||
|
||||
Scenario: The current version of Orchard is displayed in the admin
|
||||
Given I have installed Orchard
|
||||
Given I have installed Orchard
|
||||
When I go to "admin"
|
||||
Then I should see "<div id="orchard-version">Orchard v(?:\.\d+){2,4}</div>"
|
||||
Then I should see "<div id="orchard-version">Orchard v(?:\.\d+){2,4}</div>"
|
12
src/Orchard.Specs/Admin.feature.cs
generated
12
src/Orchard.Specs/Admin.feature.cs
generated
@@ -1,7 +1,7 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by SpecFlow (http://www.specflow.org/).
|
||||
// SpecFlow Version:1.4.0.0
|
||||
// SpecFlow Version:1.3.2.0
|
||||
// Runtime Version:4.0.30319.1
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
@@ -14,7 +14,7 @@ namespace Orchard.Specs
|
||||
using TechTalk.SpecFlow;
|
||||
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("TechTalk.SpecFlow", "1.4.0.0")]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("TechTalk.SpecFlow", "1.3.2.0")]
|
||||
[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[NUnit.Framework.TestFixtureAttribute()]
|
||||
[NUnit.Framework.DescriptionAttribute("The Admin side of the app")]
|
||||
@@ -31,7 +31,7 @@ namespace Orchard.Specs
|
||||
{
|
||||
testRunner = TechTalk.SpecFlow.TestRunnerManager.GetTestRunner();
|
||||
TechTalk.SpecFlow.FeatureInfo featureInfo = new TechTalk.SpecFlow.FeatureInfo(new System.Globalization.CultureInfo("en-US"), "The Admin side of the app", "In order to manage my site\r\nAs a privileged user\r\nI want to not have my cheese mo" +
|
||||
"ved in the admin", GenerationTargetLanguage.CSharp, ((string[])(null)));
|
||||
"ved in the admin", ((string[])(null)));
|
||||
testRunner.OnFeatureStart(featureInfo);
|
||||
}
|
||||
|
||||
@@ -61,11 +61,11 @@ namespace Orchard.Specs
|
||||
#line 6
|
||||
this.ScenarioSetup(scenarioInfo);
|
||||
#line 7
|
||||
testRunner.Given("I have installed Orchard");
|
||||
testRunner.Given("I have installed Orchard");
|
||||
#line 8
|
||||
testRunner.When("I go to \"admin\"");
|
||||
testRunner.When("I go to \"admin\"");
|
||||
#line 9
|
||||
testRunner.Then("I should see \"<div id=\"orchard-version\">Orchard v(?:\\.\\d+){2,4}</div>\"");
|
||||
testRunner.Then("I should see \"<div id=\"orchard-version\">Orchard v(?:\\.\\d+){2,4}</div>\"");
|
||||
#line hidden
|
||||
testRunner.CollectScenarioErrors();
|
||||
}
|
||||
|
@@ -4,7 +4,7 @@
|
||||
I want to create blogs and create, publish and edit blog posts
|
||||
|
||||
Scenario: In the admin (menu) there is a link to create a Blog
|
||||
Given I have installed Orchard
|
||||
Given I have installed Orchard
|
||||
When I go to "admin"
|
||||
Then I should see "<a href="/Admin/Blogs/Create">Blogs</a>"
|
||||
|
||||
@@ -125,4 +125,4 @@ Scenario: Enabling remote blog publishing inserts the appropriate metaweblogapi
|
||||
When I go to "/XmlRpc/LiveWriter/Manifest"
|
||||
Then the content type should be "\btext/xml\b"
|
||||
And I should see "<manifest xmlns="http\://schemas\.microsoft\.com/wlw/manifest/weblog">"
|
||||
And I should see "<clientType>Metaweblog</clientType>"
|
||||
And I should see "<clientType>Metaweblog</clientType>"
|
166
src/Orchard.Specs/Blogs.feature.cs
generated
166
src/Orchard.Specs/Blogs.feature.cs
generated
@@ -1,7 +1,7 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by SpecFlow (http://www.specflow.org/).
|
||||
// SpecFlow Version:1.4.0.0
|
||||
// SpecFlow Version:1.3.2.0
|
||||
// Runtime Version:4.0.30319.1
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
@@ -14,7 +14,7 @@ namespace Orchard.Specs
|
||||
using TechTalk.SpecFlow;
|
||||
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("TechTalk.SpecFlow", "1.4.0.0")]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("TechTalk.SpecFlow", "1.3.2.0")]
|
||||
[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[NUnit.Framework.TestFixtureAttribute()]
|
||||
[NUnit.Framework.DescriptionAttribute("Blog")]
|
||||
@@ -31,7 +31,7 @@ namespace Orchard.Specs
|
||||
{
|
||||
testRunner = TechTalk.SpecFlow.TestRunnerManager.GetTestRunner();
|
||||
TechTalk.SpecFlow.FeatureInfo featureInfo = new TechTalk.SpecFlow.FeatureInfo(new System.Globalization.CultureInfo("en-US"), "Blog", "In order to add blogs to my site\r\nAs an author\r\nI want to create blogs and create" +
|
||||
", publish and edit blog posts", GenerationTargetLanguage.CSharp, ((string[])(null)));
|
||||
", publish and edit blog posts", ((string[])(null)));
|
||||
testRunner.OnFeatureStart(featureInfo);
|
||||
}
|
||||
|
||||
@@ -61,11 +61,11 @@ namespace Orchard.Specs
|
||||
#line 6
|
||||
this.ScenarioSetup(scenarioInfo);
|
||||
#line 7
|
||||
testRunner.Given("I have installed Orchard");
|
||||
testRunner.Given("I have installed Orchard");
|
||||
#line 8
|
||||
testRunner.When("I go to \"admin\"");
|
||||
testRunner.When("I go to \"admin\"");
|
||||
#line 9
|
||||
testRunner.Then("I should see \"<a href=\"/Admin/Blogs/Create\">Blogs</a>\"");
|
||||
testRunner.Then("I should see \"<a href=\"/Admin/Blogs/Create\">Blogs</a>\"");
|
||||
#line hidden
|
||||
testRunner.CollectScenarioErrors();
|
||||
}
|
||||
@@ -78,9 +78,9 @@ this.ScenarioSetup(scenarioInfo);
|
||||
#line 11
|
||||
this.ScenarioSetup(scenarioInfo);
|
||||
#line 12
|
||||
testRunner.Given("I have installed Orchard");
|
||||
testRunner.Given("I have installed Orchard");
|
||||
#line 13
|
||||
testRunner.When("I go to \"admin/blogs/create\"");
|
||||
testRunner.When("I go to \"admin/blogs/create\"");
|
||||
#line hidden
|
||||
TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] {
|
||||
"name",
|
||||
@@ -89,15 +89,15 @@ this.ScenarioSetup(scenarioInfo);
|
||||
"Routable.Title",
|
||||
"My Blog"});
|
||||
#line 14
|
||||
testRunner.And("I fill in", ((string)(null)), table1);
|
||||
testRunner.And("I fill in", ((string)(null)), table1);
|
||||
#line 17
|
||||
testRunner.And("I hit \"Save\"");
|
||||
testRunner.And("I hit \"Save\"");
|
||||
#line 18
|
||||
testRunner.And("I go to \"my-blog\"");
|
||||
testRunner.And("I go to \"my-blog\"");
|
||||
#line 19
|
||||
testRunner.Then("I should see \"<h1[^>]*>.*?My Blog.*?</h1>\"");
|
||||
testRunner.Then("I should see \"<h1[^>]*>.*?My Blog.*?</h1>\"");
|
||||
#line 20
|
||||
testRunner.When("I go to \"admin/blogs/my-blog/posts/create\"");
|
||||
testRunner.When("I go to \"admin/blogs/my-blog/posts/create\"");
|
||||
#line hidden
|
||||
TechTalk.SpecFlow.Table table2 = new TechTalk.SpecFlow.Table(new string[] {
|
||||
"name",
|
||||
@@ -109,15 +109,15 @@ this.ScenarioSetup(scenarioInfo);
|
||||
"Body.Text",
|
||||
"Hi there."});
|
||||
#line 21
|
||||
testRunner.And("I fill in", ((string)(null)), table2);
|
||||
testRunner.And("I fill in", ((string)(null)), table2);
|
||||
#line 25
|
||||
testRunner.And("I hit \"Publish Now\"");
|
||||
testRunner.And("I hit \"Publish Now\"");
|
||||
#line 26
|
||||
testRunner.And("I go to \"my-blog/my-post\"");
|
||||
testRunner.And("I go to \"my-blog/my-post\"");
|
||||
#line 27
|
||||
testRunner.Then("I should see \"<h1[^>]*>.*?My Post.*?</h1>\"");
|
||||
testRunner.Then("I should see \"<h1[^>]*>.*?My Post.*?</h1>\"");
|
||||
#line 28
|
||||
testRunner.And("I should see \"Hi there.\"");
|
||||
testRunner.And("I should see \"Hi there.\"");
|
||||
#line hidden
|
||||
testRunner.CollectScenarioErrors();
|
||||
}
|
||||
@@ -132,9 +132,9 @@ this.ScenarioSetup(scenarioInfo);
|
||||
#line 30
|
||||
this.ScenarioSetup(scenarioInfo);
|
||||
#line 31
|
||||
testRunner.Given("I have installed Orchard");
|
||||
testRunner.Given("I have installed Orchard");
|
||||
#line 32
|
||||
testRunner.When("I go to \"admin/blogs/create\"");
|
||||
testRunner.When("I go to \"admin/blogs/create\"");
|
||||
#line hidden
|
||||
TechTalk.SpecFlow.Table table3 = new TechTalk.SpecFlow.Table(new string[] {
|
||||
"name",
|
||||
@@ -143,11 +143,11 @@ this.ScenarioSetup(scenarioInfo);
|
||||
"Routable.Title",
|
||||
"My Blog"});
|
||||
#line 33
|
||||
testRunner.And("I fill in", ((string)(null)), table3);
|
||||
testRunner.And("I fill in", ((string)(null)), table3);
|
||||
#line 36
|
||||
testRunner.And("I hit \"Save\"");
|
||||
testRunner.And("I hit \"Save\"");
|
||||
#line 37
|
||||
testRunner.And("I go to \"admin/blogs/my-blog/posts/create\"");
|
||||
testRunner.And("I go to \"admin/blogs/my-blog/posts/create\"");
|
||||
#line hidden
|
||||
TechTalk.SpecFlow.Table table4 = new TechTalk.SpecFlow.Table(new string[] {
|
||||
"name",
|
||||
@@ -159,17 +159,17 @@ this.ScenarioSetup(scenarioInfo);
|
||||
"Body.Text",
|
||||
"Hi there."});
|
||||
#line 38
|
||||
testRunner.And("I fill in", ((string)(null)), table4);
|
||||
testRunner.And("I fill in", ((string)(null)), table4);
|
||||
#line 42
|
||||
testRunner.And("I hit \"Publish Now\"");
|
||||
testRunner.And("I hit \"Publish Now\"");
|
||||
#line 43
|
||||
testRunner.And("I go to \"my-blog/my-post\"");
|
||||
testRunner.And("I go to \"my-blog/my-post\"");
|
||||
#line 44
|
||||
testRunner.Then("I should see \"<h1[^>]*>.*?My Post.*?</h1>\"");
|
||||
testRunner.Then("I should see \"<h1[^>]*>.*?My Post.*?</h1>\"");
|
||||
#line 45
|
||||
testRunner.And("I should see \"Hi there.\"");
|
||||
testRunner.And("I should see \"Hi there.\"");
|
||||
#line 46
|
||||
testRunner.When("I go to \"admin/blogs/my-blog/posts/create\"");
|
||||
testRunner.When("I go to \"admin/blogs/my-blog/posts/create\"");
|
||||
#line hidden
|
||||
TechTalk.SpecFlow.Table table5 = new TechTalk.SpecFlow.Table(new string[] {
|
||||
"name",
|
||||
@@ -181,17 +181,17 @@ this.ScenarioSetup(scenarioInfo);
|
||||
"Body.Text",
|
||||
"Hi there, again."});
|
||||
#line 47
|
||||
testRunner.And("I fill in", ((string)(null)), table5);
|
||||
testRunner.And("I fill in", ((string)(null)), table5);
|
||||
#line 51
|
||||
testRunner.And("I hit \"Publish Now\"");
|
||||
testRunner.And("I hit \"Publish Now\"");
|
||||
#line 52
|
||||
testRunner.And("I go to \"my-blog/my-post-2\"");
|
||||
testRunner.And("I go to \"my-blog/my-post-2\"");
|
||||
#line 53
|
||||
testRunner.Then("I should see \"<h1[^>]*>.*?My Post.*?</h1>\"");
|
||||
testRunner.Then("I should see \"<h1[^>]*>.*?My Post.*?</h1>\"");
|
||||
#line 54
|
||||
testRunner.And("I should see \"Hi there, again.\"");
|
||||
testRunner.And("I should see \"Hi there, again.\"");
|
||||
#line 55
|
||||
testRunner.When("I go to \"admin/blogs/my-blog/posts/create\"");
|
||||
testRunner.When("I go to \"admin/blogs/my-blog/posts/create\"");
|
||||
#line hidden
|
||||
TechTalk.SpecFlow.Table table6 = new TechTalk.SpecFlow.Table(new string[] {
|
||||
"name",
|
||||
@@ -206,15 +206,15 @@ this.ScenarioSetup(scenarioInfo);
|
||||
"Body.Text",
|
||||
"Are you still there?"});
|
||||
#line 56
|
||||
testRunner.And("I fill in", ((string)(null)), table6);
|
||||
testRunner.And("I fill in", ((string)(null)), table6);
|
||||
#line 61
|
||||
testRunner.And("I hit \"Publish Now\"");
|
||||
testRunner.And("I hit \"Publish Now\"");
|
||||
#line 62
|
||||
testRunner.And("I go to \"my-blog/my-post-3\"");
|
||||
testRunner.And("I go to \"my-blog/my-post-3\"");
|
||||
#line 63
|
||||
testRunner.Then("I should see \"<h1[^>]*>.*?My Post.*?</h1>\"");
|
||||
testRunner.Then("I should see \"<h1[^>]*>.*?My Post.*?</h1>\"");
|
||||
#line 64
|
||||
testRunner.And("I should see \"Are you still there?\"");
|
||||
testRunner.And("I should see \"Are you still there?\"");
|
||||
#line hidden
|
||||
testRunner.CollectScenarioErrors();
|
||||
}
|
||||
@@ -229,9 +229,9 @@ this.ScenarioSetup(scenarioInfo);
|
||||
#line 66
|
||||
this.ScenarioSetup(scenarioInfo);
|
||||
#line 67
|
||||
testRunner.Given("I have installed Orchard");
|
||||
testRunner.Given("I have installed Orchard");
|
||||
#line 68
|
||||
testRunner.When("I go to \"admin/blogs/create\"");
|
||||
testRunner.When("I go to \"admin/blogs/create\"");
|
||||
#line hidden
|
||||
TechTalk.SpecFlow.Table table7 = new TechTalk.SpecFlow.Table(new string[] {
|
||||
"name",
|
||||
@@ -240,15 +240,15 @@ this.ScenarioSetup(scenarioInfo);
|
||||
"Routable.Title",
|
||||
"My Blog"});
|
||||
#line 69
|
||||
testRunner.And("I fill in", ((string)(null)), table7);
|
||||
testRunner.And("I fill in", ((string)(null)), table7);
|
||||
#line 72
|
||||
testRunner.And("I hit \"Save\"");
|
||||
testRunner.And("I hit \"Save\"");
|
||||
#line 73
|
||||
testRunner.And("I go to \"my-blog\"");
|
||||
testRunner.And("I go to \"my-blog\"");
|
||||
#line 74
|
||||
testRunner.Then("I should see \"<h1[^>]*>.*?My Blog.*?</h1>\"");
|
||||
testRunner.Then("I should see \"<h1[^>]*>.*?My Blog.*?</h1>\"");
|
||||
#line 75
|
||||
testRunner.When("I go to \"admin/blogs/my-blog/posts/create\"");
|
||||
testRunner.When("I go to \"admin/blogs/my-blog/posts/create\"");
|
||||
#line hidden
|
||||
TechTalk.SpecFlow.Table table8 = new TechTalk.SpecFlow.Table(new string[] {
|
||||
"name",
|
||||
@@ -260,19 +260,19 @@ this.ScenarioSetup(scenarioInfo);
|
||||
"Body.Text",
|
||||
"Hi there."});
|
||||
#line 76
|
||||
testRunner.And("I fill in", ((string)(null)), table8);
|
||||
testRunner.And("I fill in", ((string)(null)), table8);
|
||||
#line 80
|
||||
testRunner.And("I hit \"Publish Now\"");
|
||||
testRunner.And("I hit \"Publish Now\"");
|
||||
#line 81
|
||||
testRunner.And("I go to \"my-blog/my-post\"");
|
||||
testRunner.And("I go to \"my-blog/my-post\"");
|
||||
#line 82
|
||||
testRunner.Then("I should see \"<h1[^>]*>.*?My Post.*?</h1>\"");
|
||||
testRunner.Then("I should see \"<h1[^>]*>.*?My Post.*?</h1>\"");
|
||||
#line 83
|
||||
testRunner.And("I should see \"Hi there.\"");
|
||||
testRunner.And("I should see \"Hi there.\"");
|
||||
#line 84
|
||||
testRunner.When("I go to \"admin/blogs/my-blog\"");
|
||||
testRunner.When("I go to \"admin/blogs/my-blog\"");
|
||||
#line 85
|
||||
testRunner.And("I follow \"Blog Properties\"");
|
||||
testRunner.And("I follow \"Blog Properties\"");
|
||||
#line hidden
|
||||
TechTalk.SpecFlow.Table table9 = new TechTalk.SpecFlow.Table(new string[] {
|
||||
"name",
|
||||
@@ -281,19 +281,19 @@ this.ScenarioSetup(scenarioInfo);
|
||||
"Routable.Slug",
|
||||
"my-other-blog"});
|
||||
#line 86
|
||||
testRunner.And("I fill in", ((string)(null)), table9);
|
||||
testRunner.And("I fill in", ((string)(null)), table9);
|
||||
#line 89
|
||||
testRunner.And("I hit \"Save\"");
|
||||
testRunner.And("I hit \"Save\"");
|
||||
#line 90
|
||||
testRunner.And("I go to \"my-other-blog\"");
|
||||
testRunner.And("I go to \"my-other-blog\"");
|
||||
#line 91
|
||||
testRunner.Then("I should see \"<h1[^>]*>.*?My Blog.*?</h1>\"");
|
||||
testRunner.Then("I should see \"<h1[^>]*>.*?My Blog.*?</h1>\"");
|
||||
#line 92
|
||||
testRunner.When("I go to \"my-other-blog/my-post\"");
|
||||
testRunner.When("I go to \"my-other-blog/my-post\"");
|
||||
#line 93
|
||||
testRunner.Then("I should see \"<h1[^>]*>.*?My Post.*?</h1>\"");
|
||||
testRunner.Then("I should see \"<h1[^>]*>.*?My Post.*?</h1>\"");
|
||||
#line 94
|
||||
testRunner.And("I should see \"Hi there.\"");
|
||||
testRunner.And("I should see \"Hi there.\"");
|
||||
#line hidden
|
||||
testRunner.CollectScenarioErrors();
|
||||
}
|
||||
@@ -306,9 +306,9 @@ this.ScenarioSetup(scenarioInfo);
|
||||
#line 96
|
||||
this.ScenarioSetup(scenarioInfo);
|
||||
#line 97
|
||||
testRunner.Given("I have installed Orchard");
|
||||
testRunner.Given("I have installed Orchard");
|
||||
#line 98
|
||||
testRunner.When("I go to \"admin/blogs/create\"");
|
||||
testRunner.When("I go to \"admin/blogs/create\"");
|
||||
#line hidden
|
||||
TechTalk.SpecFlow.Table table10 = new TechTalk.SpecFlow.Table(new string[] {
|
||||
"name",
|
||||
@@ -317,11 +317,11 @@ this.ScenarioSetup(scenarioInfo);
|
||||
"Routable.Title",
|
||||
"My Blog"});
|
||||
#line 99
|
||||
testRunner.And("I fill in", ((string)(null)), table10);
|
||||
testRunner.And("I fill in", ((string)(null)), table10);
|
||||
#line 102
|
||||
testRunner.And("I hit \"Save\"");
|
||||
testRunner.And("I hit \"Save\"");
|
||||
#line 103
|
||||
testRunner.And("I go to \"admin/blogs/my-blog/posts/create\"");
|
||||
testRunner.And("I go to \"admin/blogs/my-blog/posts/create\"");
|
||||
#line hidden
|
||||
TechTalk.SpecFlow.Table table11 = new TechTalk.SpecFlow.Table(new string[] {
|
||||
"name",
|
||||
@@ -333,15 +333,15 @@ this.ScenarioSetup(scenarioInfo);
|
||||
"Body.Text",
|
||||
"Hi there."});
|
||||
#line 104
|
||||
testRunner.And("I fill in", ((string)(null)), table11);
|
||||
testRunner.And("I fill in", ((string)(null)), table11);
|
||||
#line 108
|
||||
testRunner.And("I hit \"Publish Now\"");
|
||||
testRunner.And("I hit \"Publish Now\"");
|
||||
#line 109
|
||||
testRunner.And("I am redirected");
|
||||
testRunner.And("I am redirected");
|
||||
#line 110
|
||||
testRunner.And("I go to \"my-blog/my-post\"");
|
||||
testRunner.And("I go to \"my-blog/my-post\"");
|
||||
#line 111
|
||||
testRunner.Then("I should see \"<link rel=\"alternate\" type=\"application/rss\\+xml\" title=\"My Blog\" h" +
|
||||
testRunner.Then("I should see \"<link rel=\"alternate\" type=\"application/rss\\+xml\" title=\"My Blog\" h" +
|
||||
"ref=\"/rss\\?containerid=\\d+\" />\"");
|
||||
#line hidden
|
||||
testRunner.CollectScenarioErrors();
|
||||
@@ -357,13 +357,13 @@ this.ScenarioSetup(scenarioInfo);
|
||||
#line 114
|
||||
this.ScenarioSetup(scenarioInfo);
|
||||
#line 115
|
||||
testRunner.Given("I have installed Orchard");
|
||||
testRunner.Given("I have installed Orchard");
|
||||
#line 116
|
||||
testRunner.And("I have enabled \"XmlRpc\"");
|
||||
testRunner.And("I have enabled \"XmlRpc\"");
|
||||
#line 117
|
||||
testRunner.And("I have enabled \"Orchard.Blogs.RemotePublishing\"");
|
||||
testRunner.And("I have enabled \"Orchard.Blogs.RemotePublishing\"");
|
||||
#line 118
|
||||
testRunner.When("I go to \"admin/blogs/create\"");
|
||||
testRunner.When("I go to \"admin/blogs/create\"");
|
||||
#line hidden
|
||||
TechTalk.SpecFlow.Table table12 = new TechTalk.SpecFlow.Table(new string[] {
|
||||
"name",
|
||||
@@ -372,23 +372,23 @@ this.ScenarioSetup(scenarioInfo);
|
||||
"Routable.Title",
|
||||
"My Blog"});
|
||||
#line 119
|
||||
testRunner.And("I fill in", ((string)(null)), table12);
|
||||
testRunner.And("I fill in", ((string)(null)), table12);
|
||||
#line 122
|
||||
testRunner.And("I hit \"Save\"");
|
||||
testRunner.And("I hit \"Save\"");
|
||||
#line 123
|
||||
testRunner.And("I go to \"my-blog\"");
|
||||
testRunner.And("I go to \"my-blog\"");
|
||||
#line 124
|
||||
testRunner.Then("I should see \"<link href=\"[^\"]*/XmlRpc/LiveWriter/Manifest\" rel=\"wlwmanifest\" typ" +
|
||||
testRunner.Then("I should see \"<link href=\"[^\"]*/XmlRpc/LiveWriter/Manifest\" rel=\"wlwmanifest\" typ" +
|
||||
"e=\"application/wlwmanifest\\+xml\" />\"");
|
||||
#line 125
|
||||
testRunner.When("I go to \"/XmlRpc/LiveWriter/Manifest\"");
|
||||
testRunner.When("I go to \"/XmlRpc/LiveWriter/Manifest\"");
|
||||
#line 126
|
||||
testRunner.Then("the content type should be \"\\btext/xml\\b\"");
|
||||
testRunner.Then("the content type should be \"\\btext/xml\\b\"");
|
||||
#line 127
|
||||
testRunner.And("I should see \"<manifest xmlns=\"http\\://schemas\\.microsoft\\.com/wlw/manifest/weblo" +
|
||||
testRunner.And("I should see \"<manifest xmlns=\"http\\://schemas\\.microsoft\\.com/wlw/manifest/weblo" +
|
||||
"g\">\"");
|
||||
#line 128
|
||||
testRunner.And("I should see \"<clientType>Metaweblog</clientType>\"");
|
||||
testRunner.And("I should see \"<clientType>Metaweblog</clientType>\"");
|
||||
#line hidden
|
||||
testRunner.CollectScenarioErrors();
|
||||
}
|
||||
|
@@ -5,93 +5,93 @@
|
||||
|
||||
Scenario: Administrators can manage a Page
|
||||
Given I have installed Orchard
|
||||
When I have a user "user1" with roles "Administrator"
|
||||
When I have a user "user1" with roles "Administrator"
|
||||
Then "user1" should be able to "publish" a "Page" owned by "user1"
|
||||
And "user1" should be able to "edit" a "Page" owned by "user1"
|
||||
And "user1" should be able to "edit" a "Page" owned by "user1"
|
||||
|
||||
Scenario: Users can't create a Page if they don't have the PublishContent permission
|
||||
Given I have installed Orchard
|
||||
When I have a role "CustomRole" with permissions "EditContent, DeleteContent"
|
||||
And I have a user "user1" with roles "CustomRole"
|
||||
When I have a role "CustomRole" with permissions "EditContent, DeleteContent"
|
||||
And I have a user "user1" with roles "CustomRole"
|
||||
Then "user1" should not be able to "publish" a "Page" owned by "user1"
|
||||
And "user1" should be able to "edit" a "Page" owned by "user1"
|
||||
And "user1" should be able to "delete" a "Page" owned by "user1"
|
||||
And "user1" should be able to "edit" a "Page" owned by "user1"
|
||||
And "user1" should be able to "delete" a "Page" owned by "user1"
|
||||
|
||||
Scenario: Users can create a Page of others if they have PublishContent permission
|
||||
Given I have installed Orchard
|
||||
When I have a role "CustomRole" with permissions "PublishContent"
|
||||
And I have a user "user1" with roles "CustomRole"
|
||||
And I have a user "user2" with roles "Administrator"
|
||||
When I have a role "CustomRole" with permissions "PublishContent"
|
||||
And I have a user "user1" with roles "CustomRole"
|
||||
And I have a user "user2" with roles "Administrator"
|
||||
Then "user1" should be able to "publish" a "Page" owned by "user2"
|
||||
And "user1" should be able to "edit" a "Page" owned by "user2"
|
||||
And "user1" should not be able to "delete" a "Page" owned by "user2"
|
||||
And "user1" should be able to "edit" a "Page" owned by "user2"
|
||||
And "user1" should not be able to "delete" a "Page" owned by "user2"
|
||||
|
||||
Scenario: Users can create a Page if they have PublishOwnContent for Page
|
||||
Given I have installed Orchard
|
||||
When I have a role "CustomRole" with permissions "Publish_Page"
|
||||
And I have a user "user1" with roles "CustomRole"
|
||||
When I have a role "CustomRole" with permissions "Publish_Page"
|
||||
And I have a user "user1" with roles "CustomRole"
|
||||
Then "user1" should be able to "publish" a "Page" owned by "user1"
|
||||
And "user1" should be able to "edit" a "Page" owned by "user1"
|
||||
And "user1" should not be able to "delete" a "Page" owned by "user1"
|
||||
And "user1" should be able to "edit" a "Page" owned by "user1"
|
||||
And "user1" should not be able to "delete" a "Page" owned by "user1"
|
||||
|
||||
Scenario: Users can create and edit a Page even if they only have the PublishOwnContent permission
|
||||
Given I have installed Orchard
|
||||
When I have a role "CustomRole" with permissions "PublishOwnContent"
|
||||
And I have a user "user1" with roles "CustomRole"
|
||||
When I have a role "CustomRole" with permissions "PublishOwnContent"
|
||||
And I have a user "user1" with roles "CustomRole"
|
||||
Then "user1" should be able to "publish" a "Page" owned by "user1"
|
||||
And "user1" should be able to "edit" a "Page" owned by "user1"
|
||||
And "user1" should not be able to "delete" a "Page" owned by "user1"
|
||||
And "user1" should be able to "edit" a "Page" owned by "user1"
|
||||
And "user1" should not be able to "delete" a "Page" owned by "user1"
|
||||
|
||||
Scenario: Users can't edit a Page if they don't have the EditContent permission
|
||||
Given I have installed Orchard
|
||||
When I have a role "CustomRole" with permissions "DeleteContent"
|
||||
And I have a user "user1" with roles "CustomRole"
|
||||
When I have a role "CustomRole" with permissions "DeleteContent"
|
||||
And I have a user "user1" with roles "CustomRole"
|
||||
Then "user1" should not be able to "publish" a "Page" owned by "user1"
|
||||
And "user1" should not be able to "edit" a "Page" owned by "user1"
|
||||
And "user1" should be able to "delete" a "Page" owned by "user1"
|
||||
And "user1" should not be able to "edit" a "Page" owned by "user1"
|
||||
And "user1" should be able to "delete" a "Page" owned by "user1"
|
||||
|
||||
Scenario: Users can't create a Page for others if they only have PublishOwnContent
|
||||
Given I have installed Orchard
|
||||
When I have a role "CustomRole" with permissions "PublishOwnContent"
|
||||
And I have a user "user1" with roles "CustomRole"
|
||||
And I have a user "user2" with roles "Administrator"
|
||||
When I have a role "CustomRole" with permissions "PublishOwnContent"
|
||||
And I have a user "user1" with roles "CustomRole"
|
||||
And I have a user "user2" with roles "Administrator"
|
||||
Then "user1" should not be able to "publish" a "Page" owned by "user2"
|
||||
And "user1" should not be able to "edit" a "Page" owned by "user2"
|
||||
And "user1" should not be able to "delete" a "Page" owned by "user2"
|
||||
And "user1" should not be able to "edit" a "Page" owned by "user2"
|
||||
And "user1" should not be able to "delete" a "Page" owned by "user2"
|
||||
|
||||
Scenario: Users can't create a Page for others if they only have Publish_Page
|
||||
Given I have installed Orchard
|
||||
When I have a role "CustomRole" with permissions "Publish_Page"
|
||||
And I have a user "user1" with roles "CustomRole"
|
||||
And I have a user "user2" with roles "Administrator"
|
||||
When I have a role "CustomRole" with permissions "Publish_Page"
|
||||
And I have a user "user1" with roles "CustomRole"
|
||||
And I have a user "user2" with roles "Administrator"
|
||||
Then "user1" should be able to "publish" a "Page" owned by "user2"
|
||||
And "user1" should be able to "edit" a "Page" owned by "user2"
|
||||
And "user1" should not be able to "delete" a "Page" owned by "user2"
|
||||
And "user1" should be able to "edit" a "Page" owned by "user2"
|
||||
And "user1" should not be able to "delete" a "Page" owned by "user2"
|
||||
|
||||
Scenario: Users can create a Page for others if they only have Publish_Page
|
||||
Given I have installed Orchard
|
||||
When I have a role "CustomRole" with permissions "Publish_Page"
|
||||
And I have a user "user1" with roles "CustomRole"
|
||||
And I have a user "user2" with roles "Administrator"
|
||||
When I have a role "CustomRole" with permissions "Publish_Page"
|
||||
And I have a user "user1" with roles "CustomRole"
|
||||
And I have a user "user2" with roles "Administrator"
|
||||
Then "user1" should be able to "publish" a "Page" owned by "user2"
|
||||
And "user1" should be able to "edit" a "Page" owned by "user2"
|
||||
And "user1" should not be able to "delete" a "Page" owned by "user2"
|
||||
And "user1" should be able to "edit" a "Page" owned by "user2"
|
||||
And "user1" should not be able to "delete" a "Page" owned by "user2"
|
||||
|
||||
Scenario: Users can delete a Page for others if they only have Delete_Page
|
||||
Given I have installed Orchard
|
||||
When I have a role "CustomRole" with permissions "Delete_Page"
|
||||
And I have a user "user1" with roles "CustomRole"
|
||||
And I have a user "user2" with roles "Administrator"
|
||||
When I have a role "CustomRole" with permissions "Delete_Page"
|
||||
And I have a user "user1" with roles "CustomRole"
|
||||
And I have a user "user2" with roles "Administrator"
|
||||
Then "user1" should not be able to "publish" a "Page" owned by "user2"
|
||||
And "user1" should not be able to "edit" a "Page" owned by "user2"
|
||||
And "user1" should be able to "delete" a "Page" owned by "user2"
|
||||
And "user1" should not be able to "edit" a "Page" owned by "user2"
|
||||
And "user1" should be able to "delete" a "Page" owned by "user2"
|
||||
|
||||
|
||||
Scenario: Users can't delete a Page for others if they only have DeleteOwn_Page
|
||||
Given I have installed Orchard
|
||||
When I have a role "CustomRole" with permissions "DeleteOwn_Page"
|
||||
And I have a user "user1" with roles "CustomRole"
|
||||
And I have a user "user2" with roles "Administrator"
|
||||
When I have a role "CustomRole" with permissions "DeleteOwn_Page"
|
||||
And I have a user "user1" with roles "CustomRole"
|
||||
And I have a user "user2" with roles "Administrator"
|
||||
Then "user1" should not be able to "publish" a "Page" owned by "user2"
|
||||
And "user1" should not be able to "edit" a "Page" owned by "user2"
|
||||
And "user1" should not be able to "delete" a "Page" owned by "user2"
|
||||
And "user1" should not be able to "edit" a "Page" owned by "user2"
|
||||
And "user1" should not be able to "delete" a "Page" owned by "user2"
|
4
src/Orchard.Specs/ContentRights.feature.cs
generated
4
src/Orchard.Specs/ContentRights.feature.cs
generated
@@ -1,7 +1,7 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by SpecFlow (http://www.specflow.org/).
|
||||
// SpecFlow Version:1.3.0.0
|
||||
// SpecFlow Version:1.3.2.0
|
||||
// Runtime Version:4.0.30319.1
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
@@ -14,7 +14,7 @@ namespace Orchard.Specs
|
||||
using TechTalk.SpecFlow;
|
||||
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("TechTalk.SpecFlow", "1.3.0.0")]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("TechTalk.SpecFlow", "1.3.2.0")]
|
||||
[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[NUnit.Framework.TestFixtureAttribute()]
|
||||
[NUnit.Framework.DescriptionAttribute("Content rights management")]
|
||||
|
@@ -13,9 +13,9 @@ Scenario: I can create a new content type
|
||||
| name | value |
|
||||
| DisplayName | Event |
|
||||
| Name | Event |
|
||||
And I hit "Create"
|
||||
And I go to "Admin/ContentTypes/"
|
||||
Then I should see "Event"
|
||||
And I hit "Create"
|
||||
And I go to "Admin/ContentTypes/"
|
||||
Then I should see "Event"
|
||||
|
||||
Scenario: I can't create a content type with an already existing name
|
||||
Given I have installed Orchard
|
||||
@@ -25,17 +25,17 @@ Scenario: I can't create a content type with an already existing name
|
||||
| name | value |
|
||||
| DisplayName | Event |
|
||||
| Name | Event |
|
||||
And I hit "Create"
|
||||
And I go to "Admin/ContentTypes/"
|
||||
Then I should see "Event"
|
||||
And I hit "Create"
|
||||
And I go to "Admin/ContentTypes/"
|
||||
Then I should see "Event"
|
||||
When I go to "Admin/ContentTypes/Create"
|
||||
And I fill in
|
||||
| name | value |
|
||||
| DisplayName | Event |
|
||||
| Name | Event-2 |
|
||||
And I hit "Create"
|
||||
Then I should see "<h1[^>]*>.*?New Content Type.*?</h1>"
|
||||
And I should see "validation-summary-errors"
|
||||
And I hit "Create"
|
||||
Then I should see "<h1[^>]*>.*?New Content Type.*?</h1>"
|
||||
And I should see "validation-summary-errors"
|
||||
|
||||
Scenario: I can't create a content type with an already existing technical name
|
||||
Given I have installed Orchard
|
||||
@@ -45,17 +45,17 @@ Scenario: I can't create a content type with an already existing technical name
|
||||
| name | value |
|
||||
| DisplayName | Dinner |
|
||||
| Name | Dinner |
|
||||
And I hit "Create"
|
||||
And I go to "Admin/ContentTypes/"
|
||||
Then I should see "Dinner"
|
||||
When I go to "Admin/ContentTypes/Create"
|
||||
And I hit "Create"
|
||||
And I go to "Admin/ContentTypes/"
|
||||
Then I should see "Dinner"
|
||||
When I go to "Admin/ContentTypes/Create"
|
||||
And I fill in
|
||||
| name | value |
|
||||
| DisplayName | Dinner2 |
|
||||
| Name | Dinner |
|
||||
And I hit "Create"
|
||||
Then I should see "<h1[^>]*>.*?New Content Type.*?</h1>"
|
||||
And I should see "validation-summary-errors"
|
||||
And I hit "Create"
|
||||
Then I should see "<h1[^>]*>.*?New Content Type.*?</h1>"
|
||||
And I should see "validation-summary-errors"
|
||||
|
||||
Scenario: I can't rename a content type with an already existing name
|
||||
Given I have installed Orchard
|
||||
@@ -65,20 +65,20 @@ Scenario: I can't rename a content type with an already existing name
|
||||
| name | value |
|
||||
| DisplayName | Dinner |
|
||||
| Name | Dinner |
|
||||
And I hit "Create"
|
||||
And I go to "Admin/ContentTypes/"
|
||||
Then I should see "Dinner"
|
||||
And I hit "Create"
|
||||
And I go to "Admin/ContentTypes/"
|
||||
Then I should see "Dinner"
|
||||
When I go to "Admin/ContentTypes/Create"
|
||||
And I fill in
|
||||
| name | value |
|
||||
| DisplayName | Event |
|
||||
| Name | Event |
|
||||
And I hit "Create"
|
||||
And I go to "Admin/ContentTypes/"
|
||||
Then I should see "Event"
|
||||
And I hit "Create"
|
||||
And I go to "Admin/ContentTypes/"
|
||||
Then I should see "Event"
|
||||
When I go to "Admin/ContentTypes/Edit/Dinner"
|
||||
And I fill in
|
||||
| name | value |
|
||||
| DisplayName | Event |
|
||||
And I hit "Save"
|
||||
Then I should see "validation-summary-errors"
|
||||
And I hit "Save"
|
||||
Then I should see "validation-summary-errors"
|
4
src/Orchard.Specs/ContentTypes.feature.cs
generated
4
src/Orchard.Specs/ContentTypes.feature.cs
generated
@@ -1,7 +1,7 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by SpecFlow (http://www.specflow.org/).
|
||||
// SpecFlow Version:1.3.0.0
|
||||
// SpecFlow Version:1.3.2.0
|
||||
// Runtime Version:4.0.30319.1
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
@@ -14,7 +14,7 @@ namespace Orchard.Specs
|
||||
using TechTalk.SpecFlow;
|
||||
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("TechTalk.SpecFlow", "1.3.0.0")]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("TechTalk.SpecFlow", "1.3.2.0")]
|
||||
[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[NUnit.Framework.TestFixtureAttribute()]
|
||||
[NUnit.Framework.DescriptionAttribute("Content Types")]
|
||||
|
@@ -17,8 +17,8 @@ Scenario: Creating a folder
|
||||
And I fill in
|
||||
| name | value |
|
||||
| Name | Hello World |
|
||||
And I hit "Save"
|
||||
And I hit "Save"
|
||||
And I am redirected
|
||||
Then I should see "Manage Media Folders"
|
||||
And I should see "Hello World"
|
||||
And the status should be 200 "OK"
|
||||
And the status should be 200 "OK"
|
4
src/Orchard.Specs/Media.feature.cs
generated
4
src/Orchard.Specs/Media.feature.cs
generated
@@ -1,7 +1,7 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by SpecFlow (http://www.specflow.org/).
|
||||
// SpecFlow Version:1.3.0.0
|
||||
// SpecFlow Version:1.3.2.0
|
||||
// Runtime Version:4.0.30319.1
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
@@ -14,7 +14,7 @@ namespace Orchard.Specs
|
||||
using TechTalk.SpecFlow;
|
||||
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("TechTalk.SpecFlow", "1.3.0.0")]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("TechTalk.SpecFlow", "1.3.2.0")]
|
||||
[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[NUnit.Framework.TestFixtureAttribute()]
|
||||
[NUnit.Framework.DescriptionAttribute("Media management")]
|
||||
|
@@ -173,4 +173,4 @@ Scenario: Listing tenants from command line
|
||||
And I have tenant "Alpha" on "example.org" as "New-site-name"
|
||||
When I execute >tenant list
|
||||
Then I should see "Name: Alpha"
|
||||
And I should see "Request Url Host: example.org"
|
||||
And I should see "Request Url Host: example.org"
|
218
src/Orchard.Specs/MultiTenancy.feature.cs
generated
218
src/Orchard.Specs/MultiTenancy.feature.cs
generated
@@ -1,7 +1,7 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by SpecFlow (http://www.specflow.org/).
|
||||
// SpecFlow Version:1.4.0.0
|
||||
// SpecFlow Version:1.3.2.0
|
||||
// Runtime Version:4.0.30319.1
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
@@ -14,7 +14,7 @@ namespace Orchard.Specs
|
||||
using TechTalk.SpecFlow;
|
||||
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("TechTalk.SpecFlow", "1.4.0.0")]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("TechTalk.SpecFlow", "1.3.2.0")]
|
||||
[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[NUnit.Framework.TestFixtureAttribute()]
|
||||
[NUnit.Framework.DescriptionAttribute("Multiple tenant management")]
|
||||
@@ -31,7 +31,7 @@ namespace Orchard.Specs
|
||||
{
|
||||
testRunner = TechTalk.SpecFlow.TestRunnerManager.GetTestRunner();
|
||||
TechTalk.SpecFlow.FeatureInfo featureInfo = new TechTalk.SpecFlow.FeatureInfo(new System.Globalization.CultureInfo("en-US"), "Multiple tenant management", "In order to host several isolated web applications\r\nAs a root Orchard system oper" +
|
||||
"ator\r\nI want to create and manage tenant configurations", GenerationTargetLanguage.CSharp, ((string[])(null)));
|
||||
"ator\r\nI want to create and manage tenant configurations", ((string[])(null)));
|
||||
testRunner.OnFeatureStart(featureInfo);
|
||||
}
|
||||
|
||||
@@ -63,17 +63,17 @@ namespace Orchard.Specs
|
||||
#line 7
|
||||
this.ScenarioSetup(scenarioInfo);
|
||||
#line 8
|
||||
testRunner.Given("I have installed Orchard");
|
||||
testRunner.Given("I have installed Orchard");
|
||||
#line 9
|
||||
testRunner.And("I have installed \"Orchard.MultiTenancy\"");
|
||||
testRunner.And("I have installed \"Orchard.MultiTenancy\"");
|
||||
#line 10
|
||||
testRunner.When("I go to \"Admin/MultiTenancy\"");
|
||||
testRunner.When("I go to \"Admin/MultiTenancy\"");
|
||||
#line 11
|
||||
testRunner.Then("I should see \"List of Site's Tenants\"");
|
||||
testRunner.Then("I should see \"List of Site's Tenants\"");
|
||||
#line 12
|
||||
testRunner.And("I should see \"<h3>Default</h3>\"");
|
||||
testRunner.And("I should see \"<h3>Default</h3>\"");
|
||||
#line 13
|
||||
testRunner.And("the status should be 200 \"OK\"");
|
||||
testRunner.And("the status should be 200 \"OK\"");
|
||||
#line hidden
|
||||
testRunner.CollectScenarioErrors();
|
||||
}
|
||||
@@ -86,15 +86,15 @@ this.ScenarioSetup(scenarioInfo);
|
||||
#line 15
|
||||
this.ScenarioSetup(scenarioInfo);
|
||||
#line 16
|
||||
testRunner.Given("I have installed Orchard");
|
||||
testRunner.Given("I have installed Orchard");
|
||||
#line 17
|
||||
testRunner.And("I have installed \"Orchard.MultiTenancy\"");
|
||||
testRunner.And("I have installed \"Orchard.MultiTenancy\"");
|
||||
#line 18
|
||||
testRunner.When("I go to \"Admin/MultiTenancy/Add\"");
|
||||
testRunner.When("I go to \"Admin/MultiTenancy/Add\"");
|
||||
#line 19
|
||||
testRunner.And("I hit \"Save\"");
|
||||
testRunner.And("I hit \"Save\"");
|
||||
#line 20
|
||||
testRunner.Then("I should see \"is required\"");
|
||||
testRunner.Then("I should see \"is required\"");
|
||||
#line hidden
|
||||
testRunner.CollectScenarioErrors();
|
||||
}
|
||||
@@ -107,11 +107,11 @@ this.ScenarioSetup(scenarioInfo);
|
||||
#line 22
|
||||
this.ScenarioSetup(scenarioInfo);
|
||||
#line 23
|
||||
testRunner.Given("I have installed Orchard");
|
||||
testRunner.Given("I have installed Orchard");
|
||||
#line 24
|
||||
testRunner.And("I have installed \"Orchard.MultiTenancy\"");
|
||||
testRunner.And("I have installed \"Orchard.MultiTenancy\"");
|
||||
#line 25
|
||||
testRunner.When("I go to \"Admin/MultiTenancy/Add\"");
|
||||
testRunner.When("I go to \"Admin/MultiTenancy/Add\"");
|
||||
#line hidden
|
||||
TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] {
|
||||
"name",
|
||||
@@ -120,15 +120,15 @@ this.ScenarioSetup(scenarioInfo);
|
||||
"Name",
|
||||
"Scott"});
|
||||
#line 26
|
||||
testRunner.And("I fill in", ((string)(null)), table1);
|
||||
testRunner.And("I fill in", ((string)(null)), table1);
|
||||
#line 29
|
||||
testRunner.And("I hit \"Save\"");
|
||||
testRunner.And("I hit \"Save\"");
|
||||
#line 30
|
||||
testRunner.And("I am redirected");
|
||||
testRunner.And("I am redirected");
|
||||
#line 31
|
||||
testRunner.Then("I should see \"<h3>Scott</h3>\"");
|
||||
testRunner.Then("I should see \"<h3>Scott</h3>\"");
|
||||
#line 32
|
||||
testRunner.And("the status should be 200 \"OK\"");
|
||||
testRunner.And("the status should be 200 \"OK\"");
|
||||
#line hidden
|
||||
testRunner.CollectScenarioErrors();
|
||||
}
|
||||
@@ -141,11 +141,11 @@ this.ScenarioSetup(scenarioInfo);
|
||||
#line 34
|
||||
this.ScenarioSetup(scenarioInfo);
|
||||
#line 35
|
||||
testRunner.Given("I have installed Orchard");
|
||||
testRunner.Given("I have installed Orchard");
|
||||
#line 36
|
||||
testRunner.And("I have installed \"Orchard.MultiTenancy\"");
|
||||
testRunner.And("I have installed \"Orchard.MultiTenancy\"");
|
||||
#line 37
|
||||
testRunner.When("I go to \"Admin/MultiTenancy/Add\"");
|
||||
testRunner.When("I go to \"Admin/MultiTenancy/Add\"");
|
||||
#line hidden
|
||||
TechTalk.SpecFlow.Table table2 = new TechTalk.SpecFlow.Table(new string[] {
|
||||
"name",
|
||||
@@ -154,15 +154,15 @@ this.ScenarioSetup(scenarioInfo);
|
||||
"Name",
|
||||
"Scott"});
|
||||
#line 38
|
||||
testRunner.And("I fill in", ((string)(null)), table2);
|
||||
testRunner.And("I fill in", ((string)(null)), table2);
|
||||
#line 41
|
||||
testRunner.And("I hit \"Save\"");
|
||||
testRunner.And("I hit \"Save\"");
|
||||
#line 42
|
||||
testRunner.And("I am redirected");
|
||||
testRunner.And("I am redirected");
|
||||
#line 43
|
||||
testRunner.Then("I should see \"<li class=\"tenant Uninitialized\">\"");
|
||||
testRunner.Then("I should see \"<li class=\"tenant Uninitialized\">\"");
|
||||
#line 44
|
||||
testRunner.And("the status should be 200 \"OK\"");
|
||||
testRunner.And("the status should be 200 \"OK\"");
|
||||
#line hidden
|
||||
testRunner.CollectScenarioErrors();
|
||||
}
|
||||
@@ -175,11 +175,11 @@ this.ScenarioSetup(scenarioInfo);
|
||||
#line 46
|
||||
this.ScenarioSetup(scenarioInfo);
|
||||
#line 47
|
||||
testRunner.Given("I have installed Orchard");
|
||||
testRunner.Given("I have installed Orchard");
|
||||
#line 48
|
||||
testRunner.And("I have installed \"Orchard.MultiTenancy\"");
|
||||
testRunner.And("I have installed \"Orchard.MultiTenancy\"");
|
||||
#line 49
|
||||
testRunner.When("I go to \"Admin/MultiTenancy/Add\"");
|
||||
testRunner.When("I go to \"Admin/MultiTenancy/Add\"");
|
||||
#line hidden
|
||||
TechTalk.SpecFlow.Table table3 = new TechTalk.SpecFlow.Table(new string[] {
|
||||
"name",
|
||||
@@ -191,17 +191,17 @@ this.ScenarioSetup(scenarioInfo);
|
||||
"RequestUrlHost",
|
||||
"scott.example.org"});
|
||||
#line 50
|
||||
testRunner.And("I fill in", ((string)(null)), table3);
|
||||
testRunner.And("I fill in", ((string)(null)), table3);
|
||||
#line 54
|
||||
testRunner.And("I hit \"Save\"");
|
||||
testRunner.And("I hit \"Save\"");
|
||||
#line 55
|
||||
testRunner.And("I go to \"/Setup\" on host scott.example.org");
|
||||
testRunner.And("I go to \"/Setup\" on host scott.example.org");
|
||||
#line 56
|
||||
testRunner.Then("I should see \"Welcome to Orchard\"");
|
||||
testRunner.Then("I should see \"Welcome to Orchard\"");
|
||||
#line 57
|
||||
testRunner.And("I should see \"Finish Setup\"");
|
||||
testRunner.And("I should see \"Finish Setup\"");
|
||||
#line 58
|
||||
testRunner.And("the status should be 200 \"OK\"");
|
||||
testRunner.And("the status should be 200 \"OK\"");
|
||||
#line hidden
|
||||
testRunner.CollectScenarioErrors();
|
||||
}
|
||||
@@ -214,11 +214,11 @@ this.ScenarioSetup(scenarioInfo);
|
||||
#line 60
|
||||
this.ScenarioSetup(scenarioInfo);
|
||||
#line 61
|
||||
testRunner.Given("I have installed Orchard");
|
||||
testRunner.Given("I have installed Orchard");
|
||||
#line 62
|
||||
testRunner.And("I have installed \"Orchard.MultiTenancy\"");
|
||||
testRunner.And("I have installed \"Orchard.MultiTenancy\"");
|
||||
#line 63
|
||||
testRunner.When("I go to \"Admin/MultiTenancy/Add\"");
|
||||
testRunner.When("I go to \"Admin/MultiTenancy/Add\"");
|
||||
#line hidden
|
||||
TechTalk.SpecFlow.Table table4 = new TechTalk.SpecFlow.Table(new string[] {
|
||||
"name",
|
||||
@@ -233,21 +233,21 @@ this.ScenarioSetup(scenarioInfo);
|
||||
"DataProvider",
|
||||
"SqlCe"});
|
||||
#line 64
|
||||
testRunner.And("I fill in", ((string)(null)), table4);
|
||||
testRunner.And("I fill in", ((string)(null)), table4);
|
||||
#line 69
|
||||
testRunner.And("I hit \"Save\"");
|
||||
testRunner.And("I hit \"Save\"");
|
||||
#line 70
|
||||
testRunner.And("I am redirected");
|
||||
testRunner.And("I am redirected");
|
||||
#line 71
|
||||
testRunner.And("I go to \"/Setup\" on host scott.example.org");
|
||||
testRunner.And("I go to \"/Setup\" on host scott.example.org");
|
||||
#line 72
|
||||
testRunner.Then("I should see \"Welcome to Orchard\"");
|
||||
testRunner.Then("I should see \"Welcome to Orchard\"");
|
||||
#line 73
|
||||
testRunner.And("I should see \"Finish Setup\"");
|
||||
testRunner.And("I should see \"Finish Setup\"");
|
||||
#line 74
|
||||
testRunner.And("I should not see \"SQL Server Compact\"");
|
||||
testRunner.And("I should not see \"SQL Server Compact\"");
|
||||
#line 75
|
||||
testRunner.And("the status should be 200 \"OK\"");
|
||||
testRunner.And("the status should be 200 \"OK\"");
|
||||
#line hidden
|
||||
testRunner.CollectScenarioErrors();
|
||||
}
|
||||
@@ -260,11 +260,11 @@ this.ScenarioSetup(scenarioInfo);
|
||||
#line 77
|
||||
this.ScenarioSetup(scenarioInfo);
|
||||
#line 78
|
||||
testRunner.Given("I have installed Orchard");
|
||||
testRunner.Given("I have installed Orchard");
|
||||
#line 79
|
||||
testRunner.And("I have installed \"Orchard.MultiTenancy\"");
|
||||
testRunner.And("I have installed \"Orchard.MultiTenancy\"");
|
||||
#line 80
|
||||
testRunner.When("I go to \"Admin/MultiTenancy/Add\"");
|
||||
testRunner.When("I go to \"Admin/MultiTenancy/Add\"");
|
||||
#line hidden
|
||||
TechTalk.SpecFlow.Table table5 = new TechTalk.SpecFlow.Table(new string[] {
|
||||
"name",
|
||||
@@ -276,11 +276,11 @@ this.ScenarioSetup(scenarioInfo);
|
||||
"RequestUrlHost",
|
||||
"scott.example.org"});
|
||||
#line 81
|
||||
testRunner.And("I fill in", ((string)(null)), table5);
|
||||
testRunner.And("I fill in", ((string)(null)), table5);
|
||||
#line 85
|
||||
testRunner.And("I hit \"Save\"");
|
||||
testRunner.And("I hit \"Save\"");
|
||||
#line 86
|
||||
testRunner.And("I go to \"/Setup\" on host scott.example.org");
|
||||
testRunner.And("I go to \"/Setup\" on host scott.example.org");
|
||||
#line hidden
|
||||
TechTalk.SpecFlow.Table table6 = new TechTalk.SpecFlow.Table(new string[] {
|
||||
"name",
|
||||
@@ -295,15 +295,15 @@ this.ScenarioSetup(scenarioInfo);
|
||||
"ConfirmPassword",
|
||||
"6655321"});
|
||||
#line 87
|
||||
testRunner.And("I fill in", ((string)(null)), table6);
|
||||
testRunner.And("I fill in", ((string)(null)), table6);
|
||||
#line 92
|
||||
testRunner.And("I hit \"Finish Setup\"");
|
||||
testRunner.And("I hit \"Finish Setup\"");
|
||||
#line 93
|
||||
testRunner.And("I go to \"/Default.aspx\"");
|
||||
testRunner.And("I go to \"/Default.aspx\"");
|
||||
#line 94
|
||||
testRunner.Then("I should see \"Scott Site\"");
|
||||
testRunner.Then("I should see \"Scott Site\"");
|
||||
#line 95
|
||||
testRunner.And("I should see \"Welcome\"");
|
||||
testRunner.And("I should see \"Welcome\"");
|
||||
#line hidden
|
||||
testRunner.CollectScenarioErrors();
|
||||
}
|
||||
@@ -316,11 +316,11 @@ this.ScenarioSetup(scenarioInfo);
|
||||
#line 97
|
||||
this.ScenarioSetup(scenarioInfo);
|
||||
#line 98
|
||||
testRunner.Given("I have installed Orchard");
|
||||
testRunner.Given("I have installed Orchard");
|
||||
#line 99
|
||||
testRunner.And("I have installed \"Orchard.MultiTenancy\"");
|
||||
testRunner.And("I have installed \"Orchard.MultiTenancy\"");
|
||||
#line 100
|
||||
testRunner.When("I go to \"Admin/MultiTenancy/Add\"");
|
||||
testRunner.When("I go to \"Admin/MultiTenancy/Add\"");
|
||||
#line hidden
|
||||
TechTalk.SpecFlow.Table table7 = new TechTalk.SpecFlow.Table(new string[] {
|
||||
"name",
|
||||
@@ -332,11 +332,11 @@ this.ScenarioSetup(scenarioInfo);
|
||||
"RequestUrlHost",
|
||||
"scott.example.org"});
|
||||
#line 101
|
||||
testRunner.And("I fill in", ((string)(null)), table7);
|
||||
testRunner.And("I fill in", ((string)(null)), table7);
|
||||
#line 105
|
||||
testRunner.And("I hit \"Save\"");
|
||||
testRunner.And("I hit \"Save\"");
|
||||
#line 106
|
||||
testRunner.And("I go to \"/Setup\" on host scott.example.org");
|
||||
testRunner.And("I go to \"/Setup\" on host scott.example.org");
|
||||
#line hidden
|
||||
TechTalk.SpecFlow.Table table8 = new TechTalk.SpecFlow.Table(new string[] {
|
||||
"name",
|
||||
@@ -351,17 +351,17 @@ this.ScenarioSetup(scenarioInfo);
|
||||
"ConfirmPassword",
|
||||
"6655321"});
|
||||
#line 107
|
||||
testRunner.And("I fill in", ((string)(null)), table8);
|
||||
testRunner.And("I fill in", ((string)(null)), table8);
|
||||
#line 112
|
||||
testRunner.And("I hit \"Finish Setup\"");
|
||||
testRunner.And("I hit \"Finish Setup\"");
|
||||
#line 113
|
||||
testRunner.And("I go to \"/Admin/MultiTenancy/Edit/Scott\" on host localhost");
|
||||
testRunner.And("I go to \"/Admin/MultiTenancy/Edit/Scott\" on host localhost");
|
||||
#line 114
|
||||
testRunner.Then("I should see \"<h1>Edit Tenant</h1>\"");
|
||||
testRunner.Then("I should see \"<h1>Edit Tenant</h1>\"");
|
||||
#line 115
|
||||
testRunner.And("I should see \"<h2>Scott</h2>\"");
|
||||
testRunner.And("I should see \"<h2>Scott</h2>\"");
|
||||
#line 116
|
||||
testRunner.And("I should not see \"Allow the tenant to set up the database\"");
|
||||
testRunner.And("I should not see \"Allow the tenant to set up the database\"");
|
||||
#line hidden
|
||||
testRunner.CollectScenarioErrors();
|
||||
}
|
||||
@@ -376,13 +376,13 @@ this.ScenarioSetup(scenarioInfo);
|
||||
#line 119
|
||||
this.ScenarioSetup(scenarioInfo);
|
||||
#line 120
|
||||
testRunner.Given("I have installed Orchard");
|
||||
testRunner.Given("I have installed Orchard");
|
||||
#line 121
|
||||
testRunner.And("I have installed \"Orchard.MultiTenancy\"");
|
||||
testRunner.And("I have installed \"Orchard.MultiTenancy\"");
|
||||
#line 122
|
||||
testRunner.When("I go to \"Admin/MultiTenancy\"");
|
||||
testRunner.When("I go to \"Admin/MultiTenancy\"");
|
||||
#line 123
|
||||
testRunner.Then("I should not see \"<form action=\"/Admin/MultiTenancy/disable\"\"");
|
||||
testRunner.Then("I should not see \"<form action=\"/Admin/MultiTenancy/disable\"\"");
|
||||
#line hidden
|
||||
testRunner.CollectScenarioErrors();
|
||||
}
|
||||
@@ -395,11 +395,11 @@ this.ScenarioSetup(scenarioInfo);
|
||||
#line 125
|
||||
this.ScenarioSetup(scenarioInfo);
|
||||
#line 126
|
||||
testRunner.Given("I have installed Orchard");
|
||||
testRunner.Given("I have installed Orchard");
|
||||
#line 127
|
||||
testRunner.And("I have installed \"Orchard.MultiTenancy\"");
|
||||
testRunner.And("I have installed \"Orchard.MultiTenancy\"");
|
||||
#line 128
|
||||
testRunner.When("I go to \"Admin/MultiTenancy/Add\"");
|
||||
testRunner.When("I go to \"Admin/MultiTenancy/Add\"");
|
||||
#line hidden
|
||||
TechTalk.SpecFlow.Table table9 = new TechTalk.SpecFlow.Table(new string[] {
|
||||
"name",
|
||||
@@ -411,11 +411,11 @@ this.ScenarioSetup(scenarioInfo);
|
||||
"RequestUrlHost",
|
||||
"scott.example.org"});
|
||||
#line 129
|
||||
testRunner.And("I fill in", ((string)(null)), table9);
|
||||
testRunner.And("I fill in", ((string)(null)), table9);
|
||||
#line 133
|
||||
testRunner.And("I hit \"Save\"");
|
||||
testRunner.And("I hit \"Save\"");
|
||||
#line 134
|
||||
testRunner.And("I go to \"/Setup\" on host scott.example.org");
|
||||
testRunner.And("I go to \"/Setup\" on host scott.example.org");
|
||||
#line hidden
|
||||
TechTalk.SpecFlow.Table table10 = new TechTalk.SpecFlow.Table(new string[] {
|
||||
"name",
|
||||
@@ -430,17 +430,17 @@ this.ScenarioSetup(scenarioInfo);
|
||||
"ConfirmPassword",
|
||||
"6655321"});
|
||||
#line 135
|
||||
testRunner.And("I fill in", ((string)(null)), table10);
|
||||
testRunner.And("I fill in", ((string)(null)), table10);
|
||||
#line 140
|
||||
testRunner.And("I hit \"Finish Setup\"");
|
||||
testRunner.And("I hit \"Finish Setup\"");
|
||||
#line 141
|
||||
testRunner.And("I go to \"/Admin/MultiTenancy\" on host localhost");
|
||||
testRunner.And("I go to \"/Admin/MultiTenancy\" on host localhost");
|
||||
#line 142
|
||||
testRunner.And("I hit \"Suspend\"");
|
||||
testRunner.And("I hit \"Suspend\"");
|
||||
#line 143
|
||||
testRunner.And("I am redirected");
|
||||
testRunner.And("I am redirected");
|
||||
#line 144
|
||||
testRunner.Then("I should see \"<form action=\"/Admin/MultiTenancy/enable\"\"");
|
||||
testRunner.Then("I should see \"<form action=\"/Admin/MultiTenancy/enable\"\"");
|
||||
#line hidden
|
||||
testRunner.CollectScenarioErrors();
|
||||
}
|
||||
@@ -453,11 +453,11 @@ this.ScenarioSetup(scenarioInfo);
|
||||
#line 146
|
||||
this.ScenarioSetup(scenarioInfo);
|
||||
#line 147
|
||||
testRunner.Given("I have installed Orchard");
|
||||
testRunner.Given("I have installed Orchard");
|
||||
#line 148
|
||||
testRunner.And("I have installed \"Orchard.MultiTenancy\"");
|
||||
testRunner.And("I have installed \"Orchard.MultiTenancy\"");
|
||||
#line 149
|
||||
testRunner.When("I go to \"Admin/MultiTenancy/Add\"");
|
||||
testRunner.When("I go to \"Admin/MultiTenancy/Add\"");
|
||||
#line hidden
|
||||
TechTalk.SpecFlow.Table table11 = new TechTalk.SpecFlow.Table(new string[] {
|
||||
"name",
|
||||
@@ -469,11 +469,11 @@ this.ScenarioSetup(scenarioInfo);
|
||||
"RequestUrlHost",
|
||||
"scott.example.org"});
|
||||
#line 150
|
||||
testRunner.And("I fill in", ((string)(null)), table11);
|
||||
testRunner.And("I fill in", ((string)(null)), table11);
|
||||
#line 154
|
||||
testRunner.And("I hit \"Save\"");
|
||||
testRunner.And("I hit \"Save\"");
|
||||
#line 155
|
||||
testRunner.And("I go to \"/Setup\" on host scott.example.org");
|
||||
testRunner.And("I go to \"/Setup\" on host scott.example.org");
|
||||
#line hidden
|
||||
TechTalk.SpecFlow.Table table12 = new TechTalk.SpecFlow.Table(new string[] {
|
||||
"name",
|
||||
@@ -488,21 +488,21 @@ this.ScenarioSetup(scenarioInfo);
|
||||
"ConfirmPassword",
|
||||
"6655321"});
|
||||
#line 156
|
||||
testRunner.And("I fill in", ((string)(null)), table12);
|
||||
testRunner.And("I fill in", ((string)(null)), table12);
|
||||
#line 161
|
||||
testRunner.And("I hit \"Finish Setup\"");
|
||||
testRunner.And("I hit \"Finish Setup\"");
|
||||
#line 162
|
||||
testRunner.And("I go to \"/Admin/MultiTenancy\" on host localhost");
|
||||
testRunner.And("I go to \"/Admin/MultiTenancy\" on host localhost");
|
||||
#line 163
|
||||
testRunner.And("I hit \"Suspend\"");
|
||||
testRunner.And("I hit \"Suspend\"");
|
||||
#line 164
|
||||
testRunner.And("I am redirected");
|
||||
testRunner.And("I am redirected");
|
||||
#line 165
|
||||
testRunner.And("I hit \"Resume\"");
|
||||
testRunner.And("I hit \"Resume\"");
|
||||
#line 166
|
||||
testRunner.And("I am redirected");
|
||||
testRunner.And("I am redirected");
|
||||
#line 167
|
||||
testRunner.Then("I should see \"<form action=\"/Admin/MultiTenancy/disable\"\"");
|
||||
testRunner.Then("I should see \"<form action=\"/Admin/MultiTenancy/disable\"\"");
|
||||
#line hidden
|
||||
testRunner.CollectScenarioErrors();
|
||||
}
|
||||
@@ -517,17 +517,17 @@ this.ScenarioSetup(scenarioInfo);
|
||||
#line 170
|
||||
this.ScenarioSetup(scenarioInfo);
|
||||
#line 171
|
||||
testRunner.Given("I have installed Orchard");
|
||||
testRunner.Given("I have installed Orchard");
|
||||
#line 172
|
||||
testRunner.And("I have installed \"Orchard.MultiTenancy\"");
|
||||
testRunner.And("I have installed \"Orchard.MultiTenancy\"");
|
||||
#line 173
|
||||
testRunner.And("I have tenant \"Alpha\" on \"example.org\" as \"New-site-name\"");
|
||||
testRunner.And("I have tenant \"Alpha\" on \"example.org\" as \"New-site-name\"");
|
||||
#line 174
|
||||
testRunner.When("I execute >tenant list");
|
||||
testRunner.When("I execute >tenant list");
|
||||
#line 175
|
||||
testRunner.Then("I should see \"Name: Alpha\"");
|
||||
testRunner.Then("I should see \"Name: Alpha\"");
|
||||
#line 176
|
||||
testRunner.And("I should see \"Request Url Host: example.org\"");
|
||||
testRunner.And("I should see \"Request Url Host: example.org\"");
|
||||
#line hidden
|
||||
testRunner.CollectScenarioErrors();
|
||||
}
|
||||
|
@@ -138,21 +138,16 @@
|
||||
<DependentUpon>Blogs.feature</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="ContentRights.feature.cs">
|
||||
<DependentUpon>ContentRights.feature</DependentUpon>
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>ContentRights.feature</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="ContentTypes.feature.cs">
|
||||
<DependentUpon>ContentTypes.feature</DependentUpon>
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>ContentTypes.feature</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Hosting\ExtensionDeploymentOptions.cs" />
|
||||
<Compile Include="SiteCompilation.feature.cs">
|
||||
<DependentUpon>SiteCompilation.feature</DependentUpon>
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
</Compile>
|
||||
<Compile Include="Hosting\MessageSink.cs" />
|
||||
<Compile Include="Hosting\HostingTraceListener.cs" />
|
||||
<Compile Include="Hosting\TraceEnabledDataServicesProviderFactory.cs" />
|
||||
@@ -180,32 +175,37 @@
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>Pages.feature</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Util\PathExtensions.cs" />
|
||||
<Compile Include="WebHosting.feature.cs">
|
||||
<DependentUpon>WebHosting.feature</DependentUpon>
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
</Compile>
|
||||
<Compile Include="Hosting\Orchard.Web\Global.asax.cs" />
|
||||
<Compile Include="Hosting\SerializableDelegate.cs" />
|
||||
<Compile Include="Bindings\WebAppHosting.cs" />
|
||||
<Compile Include="Hosting\WebHost.cs" />
|
||||
<Compile Include="Hosting\WebHostAgent.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Setup.feature.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>Setup.feature</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="SiteCompilation.feature.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>SiteCompilation.feature</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="UsingSpecFlow.feature.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>UsingSpecFlow.feature</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Util\PathExtensions.cs" />
|
||||
<Compile Include="Hosting\Orchard.Web\Global.asax.cs" />
|
||||
<Compile Include="Hosting\SerializableDelegate.cs" />
|
||||
<Compile Include="Bindings\WebAppHosting.cs" />
|
||||
<Compile Include="Hosting\WebHost.cs" />
|
||||
<Compile Include="Hosting\WebHostAgent.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Bindings\SanityCheck.cs" />
|
||||
<Compile Include="Hosting\Orchard.Web\_Default.aspx.cs">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="WebHosting.feature.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>WebHosting.feature</DependentUpon>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Hosting\Orchard.Web\Web.config">
|
||||
|
@@ -4,7 +4,7 @@
|
||||
I want to create, publish and edit pages
|
||||
|
||||
Scenario: In the admin (menu) there is a link to create a Page
|
||||
Given I have installed Orchard
|
||||
Given I have installed Orchard
|
||||
When I go to "admin"
|
||||
Then I should see "<a href="/Admin/Contents/Create/Page">Page</a>"
|
||||
|
||||
|
52
src/Orchard.Specs/Pages.feature.cs
generated
52
src/Orchard.Specs/Pages.feature.cs
generated
@@ -1,7 +1,7 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by SpecFlow (http://www.specflow.org/).
|
||||
// SpecFlow Version:1.4.0.0
|
||||
// SpecFlow Version:1.3.2.0
|
||||
// Runtime Version:4.0.30319.1
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
@@ -14,7 +14,7 @@ namespace Orchard.Specs
|
||||
using TechTalk.SpecFlow;
|
||||
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("TechTalk.SpecFlow", "1.4.0.0")]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("TechTalk.SpecFlow", "1.3.2.0")]
|
||||
[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[NUnit.Framework.TestFixtureAttribute()]
|
||||
[NUnit.Framework.DescriptionAttribute("Pages")]
|
||||
@@ -31,7 +31,7 @@ namespace Orchard.Specs
|
||||
{
|
||||
testRunner = TechTalk.SpecFlow.TestRunnerManager.GetTestRunner();
|
||||
TechTalk.SpecFlow.FeatureInfo featureInfo = new TechTalk.SpecFlow.FeatureInfo(new System.Globalization.CultureInfo("en-US"), "Pages", "In order to add content pages to my site\r\nAs an author\r\nI want to create, publish" +
|
||||
" and edit pages", GenerationTargetLanguage.CSharp, ((string[])(null)));
|
||||
" and edit pages", ((string[])(null)));
|
||||
testRunner.OnFeatureStart(featureInfo);
|
||||
}
|
||||
|
||||
@@ -61,11 +61,11 @@ namespace Orchard.Specs
|
||||
#line 6
|
||||
this.ScenarioSetup(scenarioInfo);
|
||||
#line 7
|
||||
testRunner.Given("I have installed Orchard");
|
||||
testRunner.Given("I have installed Orchard");
|
||||
#line 8
|
||||
testRunner.When("I go to \"admin\"");
|
||||
testRunner.When("I go to \"admin\"");
|
||||
#line 9
|
||||
testRunner.Then("I should see \"<a href=\"/Admin/Contents/Create/Page\">Page</a>\"");
|
||||
testRunner.Then("I should see \"<a href=\"/Admin/Contents/Create/Page\">Page</a>\"");
|
||||
#line hidden
|
||||
testRunner.CollectScenarioErrors();
|
||||
}
|
||||
@@ -78,9 +78,9 @@ this.ScenarioSetup(scenarioInfo);
|
||||
#line 11
|
||||
this.ScenarioSetup(scenarioInfo);
|
||||
#line 12
|
||||
testRunner.Given("I have installed Orchard");
|
||||
testRunner.Given("I have installed Orchard");
|
||||
#line 13
|
||||
testRunner.When("I go to \"admin/contents/create/page\"");
|
||||
testRunner.When("I go to \"admin/contents/create/page\"");
|
||||
#line hidden
|
||||
TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] {
|
||||
"name",
|
||||
@@ -92,15 +92,15 @@ this.ScenarioSetup(scenarioInfo);
|
||||
"Body.Text",
|
||||
"This is super."});
|
||||
#line 14
|
||||
testRunner.And("I fill in", ((string)(null)), table1);
|
||||
testRunner.And("I fill in", ((string)(null)), table1);
|
||||
#line 18
|
||||
testRunner.And("I hit \"Publish Now\"");
|
||||
testRunner.And("I hit \"Publish Now\"");
|
||||
#line 19
|
||||
testRunner.And("I go to \"super-duper\"");
|
||||
testRunner.And("I go to \"super-duper\"");
|
||||
#line 20
|
||||
testRunner.Then("I should see \"<h1[^>]*>.*?Super Duper.*?</h1>\"");
|
||||
testRunner.Then("I should see \"<h1[^>]*>.*?Super Duper.*?</h1>\"");
|
||||
#line 21
|
||||
testRunner.And("I should see \"This is super.\"");
|
||||
testRunner.And("I should see \"This is super.\"");
|
||||
#line hidden
|
||||
testRunner.CollectScenarioErrors();
|
||||
}
|
||||
@@ -115,9 +115,9 @@ this.ScenarioSetup(scenarioInfo);
|
||||
#line 23
|
||||
this.ScenarioSetup(scenarioInfo);
|
||||
#line 24
|
||||
testRunner.Given("I have installed Orchard");
|
||||
testRunner.Given("I have installed Orchard");
|
||||
#line 25
|
||||
testRunner.When("I go to \"admin/contents/create/page\"");
|
||||
testRunner.When("I go to \"admin/contents/create/page\"");
|
||||
#line hidden
|
||||
TechTalk.SpecFlow.Table table2 = new TechTalk.SpecFlow.Table(new string[] {
|
||||
"name",
|
||||
@@ -129,17 +129,17 @@ this.ScenarioSetup(scenarioInfo);
|
||||
"Body.Text",
|
||||
"This is super."});
|
||||
#line 26
|
||||
testRunner.And("I fill in", ((string)(null)), table2);
|
||||
testRunner.And("I fill in", ((string)(null)), table2);
|
||||
#line 30
|
||||
testRunner.And("I hit \"Publish Now\"");
|
||||
testRunner.And("I hit \"Publish Now\"");
|
||||
#line 31
|
||||
testRunner.And("I go to \"super-duper\"");
|
||||
testRunner.And("I go to \"super-duper\"");
|
||||
#line 32
|
||||
testRunner.Then("I should see \"<h1[^>]*>.*?Super Duper.*?</h1>\"");
|
||||
testRunner.Then("I should see \"<h1[^>]*>.*?Super Duper.*?</h1>\"");
|
||||
#line 33
|
||||
testRunner.And("I should see \"This is super.\"");
|
||||
testRunner.And("I should see \"This is super.\"");
|
||||
#line 34
|
||||
testRunner.When("I go to \"admin/contents/create/page\"");
|
||||
testRunner.When("I go to \"admin/contents/create/page\"");
|
||||
#line hidden
|
||||
TechTalk.SpecFlow.Table table3 = new TechTalk.SpecFlow.Table(new string[] {
|
||||
"name",
|
||||
@@ -151,15 +151,15 @@ this.ScenarioSetup(scenarioInfo);
|
||||
"Body.Text",
|
||||
"This is super number two."});
|
||||
#line 35
|
||||
testRunner.And("I fill in", ((string)(null)), table3);
|
||||
testRunner.And("I fill in", ((string)(null)), table3);
|
||||
#line 39
|
||||
testRunner.And("I hit \"Publish Now\"");
|
||||
testRunner.And("I hit \"Publish Now\"");
|
||||
#line 40
|
||||
testRunner.And("I go to \"super-duper-2\"");
|
||||
testRunner.And("I go to \"super-duper-2\"");
|
||||
#line 41
|
||||
testRunner.Then("I should see \"<h1[^>]*>.*?Super Duper.*?</h1>\"");
|
||||
testRunner.Then("I should see \"<h1[^>]*>.*?Super Duper.*?</h1>\"");
|
||||
#line 42
|
||||
testRunner.And("I should see \"This is super number two.\"");
|
||||
testRunner.And("I should see \"This is super number two.\"");
|
||||
#line hidden
|
||||
testRunner.CollectScenarioErrors();
|
||||
}
|
||||
|
@@ -51,4 +51,4 @@ Scenario: Calling setup on a brand new install
|
||||
And I hit "Finish Setup"
|
||||
And I go to "/Default.aspx"
|
||||
Then I should see "My Site"
|
||||
And I should see "Welcome, <strong>admin</strong>!"
|
||||
And I should see "Welcome, <strong>admin</strong>!"
|
50
src/Orchard.Specs/Setup.feature.cs
generated
50
src/Orchard.Specs/Setup.feature.cs
generated
@@ -1,7 +1,7 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by SpecFlow (http://www.specflow.org/).
|
||||
// SpecFlow Version:1.4.0.0
|
||||
// SpecFlow Version:1.3.2.0
|
||||
// Runtime Version:4.0.30319.1
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
@@ -14,7 +14,7 @@ namespace Orchard.Specs
|
||||
using TechTalk.SpecFlow;
|
||||
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("TechTalk.SpecFlow", "1.4.0.0")]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("TechTalk.SpecFlow", "1.3.2.0")]
|
||||
[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[NUnit.Framework.TestFixtureAttribute()]
|
||||
[NUnit.Framework.DescriptionAttribute("Setup")]
|
||||
@@ -31,7 +31,7 @@ namespace Orchard.Specs
|
||||
{
|
||||
testRunner = TechTalk.SpecFlow.TestRunnerManager.GetTestRunner();
|
||||
TechTalk.SpecFlow.FeatureInfo featureInfo = new TechTalk.SpecFlow.FeatureInfo(new System.Globalization.CultureInfo("en-US"), "Setup", "In order to install orchard\r\nAs a new user\r\nI want to setup a new site from the d" +
|
||||
"efault screen", GenerationTargetLanguage.CSharp, ((string[])(null)));
|
||||
"efault screen", ((string[])(null)));
|
||||
testRunner.OnFeatureStart(featureInfo);
|
||||
}
|
||||
|
||||
@@ -76,15 +76,15 @@ this.ScenarioSetup(scenarioInfo);
|
||||
"theme",
|
||||
"SafeMode"});
|
||||
#line 7
|
||||
testRunner.Given("I have a clean site with", ((string)(null)), table1);
|
||||
testRunner.Given("I have a clean site with", ((string)(null)), table1);
|
||||
#line 12
|
||||
testRunner.When("I go to \"/Default.aspx\"");
|
||||
testRunner.When("I go to \"/Default.aspx\"");
|
||||
#line 13
|
||||
testRunner.Then("I should see \"Welcome to Orchard\"");
|
||||
testRunner.Then("I should see \"Welcome to Orchard\"");
|
||||
#line 14
|
||||
testRunner.And("I should see \"Finish Setup\"");
|
||||
testRunner.And("I should see \"Finish Setup\"");
|
||||
#line 15
|
||||
testRunner.And("the status should be 200 \"OK\"");
|
||||
testRunner.And("the status should be 200 \"OK\"");
|
||||
#line hidden
|
||||
testRunner.CollectScenarioErrors();
|
||||
}
|
||||
@@ -112,15 +112,15 @@ this.ScenarioSetup(scenarioInfo);
|
||||
"theme",
|
||||
"SafeMode"});
|
||||
#line 18
|
||||
testRunner.Given("I have a clean site with", ((string)(null)), table2);
|
||||
testRunner.Given("I have a clean site with", ((string)(null)), table2);
|
||||
#line 23
|
||||
testRunner.When("I go to \"/Setup\"");
|
||||
testRunner.When("I go to \"/Setup\"");
|
||||
#line 24
|
||||
testRunner.Then("I should see \"Welcome to Orchard\"");
|
||||
testRunner.Then("I should see \"Welcome to Orchard\"");
|
||||
#line 25
|
||||
testRunner.And("I should see \"Finish Setup\"");
|
||||
testRunner.And("I should see \"Finish Setup\"");
|
||||
#line 26
|
||||
testRunner.And("the status should be 200 \"OK\"");
|
||||
testRunner.And("the status should be 200 \"OK\"");
|
||||
#line hidden
|
||||
testRunner.CollectScenarioErrors();
|
||||
}
|
||||
@@ -148,16 +148,16 @@ this.ScenarioSetup(scenarioInfo);
|
||||
"theme",
|
||||
"SafeMode"});
|
||||
#line 29
|
||||
testRunner.Given("I have a clean site with", ((string)(null)), table3);
|
||||
testRunner.Given("I have a clean site with", ((string)(null)), table3);
|
||||
#line 34
|
||||
testRunner.When("I go to \"/Setup\"");
|
||||
testRunner.When("I go to \"/Setup\"");
|
||||
#line 35
|
||||
testRunner.And("I hit \"Finish Setup\"");
|
||||
testRunner.And("I hit \"Finish Setup\"");
|
||||
#line 36
|
||||
testRunner.Then("I should see \"<input autofocus=\"autofocus\" class=\"input-validation-error\" id=\"Sit" +
|
||||
testRunner.Then("I should see \"<input autofocus=\"autofocus\" class=\"input-validation-error\" id=\"Sit" +
|
||||
"eName\" name=\"SiteName\" type=\"text\" value=\"\" />\"");
|
||||
#line 37
|
||||
testRunner.And("I should see \"<input class=\"input-validation-error\" id=\"AdminPassword\" name=\"Admi" +
|
||||
testRunner.And("I should see \"<input class=\"input-validation-error\" id=\"AdminPassword\" name=\"Admi" +
|
||||
"nPassword\" type=\"password\" />\"");
|
||||
#line hidden
|
||||
testRunner.CollectScenarioErrors();
|
||||
@@ -187,9 +187,9 @@ this.ScenarioSetup(scenarioInfo);
|
||||
"theme",
|
||||
"SafeMode, TheThemeMachine"});
|
||||
#line 40
|
||||
testRunner.Given("I have a clean site with", ((string)(null)), table4);
|
||||
testRunner.Given("I have a clean site with", ((string)(null)), table4);
|
||||
#line 45
|
||||
testRunner.And("I am on \"/Setup\"");
|
||||
testRunner.And("I am on \"/Setup\"");
|
||||
#line hidden
|
||||
TechTalk.SpecFlow.Table table5 = new TechTalk.SpecFlow.Table(new string[] {
|
||||
"name",
|
||||
@@ -204,15 +204,15 @@ this.ScenarioSetup(scenarioInfo);
|
||||
"ConfirmPassword",
|
||||
"6655321"});
|
||||
#line 46
|
||||
testRunner.When("I fill in", ((string)(null)), table5);
|
||||
testRunner.When("I fill in", ((string)(null)), table5);
|
||||
#line 51
|
||||
testRunner.And("I hit \"Finish Setup\"");
|
||||
testRunner.And("I hit \"Finish Setup\"");
|
||||
#line 52
|
||||
testRunner.And("I go to \"/Default.aspx\"");
|
||||
testRunner.And("I go to \"/Default.aspx\"");
|
||||
#line 53
|
||||
testRunner.Then("I should see \"My Site\"");
|
||||
testRunner.Then("I should see \"My Site\"");
|
||||
#line 54
|
||||
testRunner.And("I should see \"Welcome, <strong>admin</strong>!\"");
|
||||
testRunner.And("I should see \"Welcome, <strong>admin</strong>!\"");
|
||||
#line hidden
|
||||
testRunner.CollectScenarioErrors();
|
||||
}
|
||||
|
@@ -7,4 +7,4 @@ Scenario: Dynamic compilation support: modules can be deployed as source files o
|
||||
Given I have chosen to deploy modules as source files only
|
||||
And I have installed Orchard
|
||||
When I go to "admin"
|
||||
Then I should see "<div id="orchard-version">Orchard v(?:\.\d+){2,4}</div>"
|
||||
Then I should see "<div id="orchard-version">Orchard v(?:\.\d+){2,4}</div>"
|
@@ -8,4 +8,4 @@ Scenario: Spec flow generates and runs via nunit
|
||||
When I run steps
|
||||
And they have values like "5"
|
||||
Then they run
|
||||
And values like five are captured
|
||||
And values like five are captured
|
@@ -15,26 +15,26 @@
|
||||
@using(Script.Foot()){
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
$(function(){
|
||||
//pull slug input from tab order
|
||||
$("#@Html.FieldIdFor(m=>m.Name)").attr("tabindex",-1);
|
||||
$("#@Html.FieldIdFor(m=>m.DisplayName)").blur(function(){
|
||||
var name = $("#@Html.FieldIdFor(m=>m.Name)");
|
||||
if (name.val()) { return true; }
|
||||
var displayName = $("#@Html.FieldIdFor(m=>m.DisplayName)").val();
|
||||
jQuery.post(
|
||||
"@Url.Action("ContentTypeName","Admin",new RouteValueDictionary{{"Area","Orchard.ContentTypes"}})",
|
||||
{
|
||||
displayName: $("#@Html.FieldIdFor(m=>m.DisplayName)").val(),
|
||||
__RequestVerificationToken: $("input[name=__RequestVerificationToken]").val()
|
||||
},
|
||||
function(data) {
|
||||
name.val(data);
|
||||
},
|
||||
"json"
|
||||
);
|
||||
})
|
||||
})
|
||||
$(function(){
|
||||
//pull slug input from tab order
|
||||
$("#@Html.FieldIdFor(m=>m.Name)").attr("tabindex",-1);
|
||||
$("#@Html.FieldIdFor(m=>m.DisplayName)").blur(function(){
|
||||
var name = $("#@Html.FieldIdFor(m=>m.Name)");
|
||||
if (name.val()) { return true; }
|
||||
var displayName = $("#@Html.FieldIdFor(m=>m.DisplayName)").val();
|
||||
jQuery.post(
|
||||
"@Url.Action("ContentTypeName","Admin",new RouteValueDictionary{{"Area","Orchard.ContentTypes"}})",
|
||||
{
|
||||
displayName: $("#@Html.FieldIdFor(m=>m.DisplayName)").val(),
|
||||
__RequestVerificationToken: $("input[name=__RequestVerificationToken]").val()
|
||||
},
|
||||
function(data) {
|
||||
name.val(data);
|
||||
},
|
||||
"json"
|
||||
);
|
||||
})
|
||||
})
|
||||
//]]>
|
||||
</script>
|
||||
}
|
Reference in New Issue
Block a user