mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Fixing Spec Flow tests.
--HG-- branch : dev
This commit is contained in:
@@ -1,3 +1,3 @@
|
|||||||
setup /SiteName:Profiling /AdminUsername:admin /AdminPassword:profiling-secret /DatabaseProvider:SqlCe /EnabledFeatures:Profiling,Orchard.Framework,Routable,Common,Dashboard,Feeds,PublishLater,HomePage,Contents,ContentsLocation,Navigation,Reports,Scheduling,Indexing,Settings,Localization,XmlRpc,Orchard.Users,Orchard.Roles,TinyMce,Orchard.Themes,Orchard.MultiTenancy,Orchard.Blogs,Orchard.Comments,Orchard.Modules,Orchard.Widgets,Orchard.Media,Orchard.Tags,Orchard.Experimental
|
setup /SiteName:Profiling /AdminUsername:admin /AdminPassword:profiling-secret /DatabaseProvider:SqlCe /EnabledFeatures:Profiling,Orchard.Framework,Routable,Common,Dashboard,Feeds,PublishLater,HomePage,Contents,Navigation,Reports,Scheduling,Indexing,Settings,Localization,XmlRpc,Orchard.Users,Orchard.Roles,TinyMce,Orchard.Themes,Orchard.MultiTenancy,Orchard.Blogs,Orchard.Comments,Orchard.Modules,Orchard.Widgets,Orchard.Media,Orchard.Tags,Orchard.Experimental
|
||||||
add profiling data
|
add profiling data
|
||||||
feature disable Orchard.Experimental
|
feature disable Orchard.Experimental
|
||||||
|
@@ -17,7 +17,7 @@ namespace Orchard.Specs.Bindings {
|
|||||||
|
|
||||||
webApp.GivenIHaveACleanSiteWith(TableData(
|
webApp.GivenIHaveACleanSiteWith(TableData(
|
||||||
new { extension = "module", names = "Orchard.Setup, Orchard.Modules, Orchard.Packaging, Orchard.Themes, Orchard.Widgets, Orchard.Users, Orchard.Roles, Orchard.Comments, Orchard.jQuery, Orchard.Tags, TinyMce" },
|
new { extension = "module", names = "Orchard.Setup, Orchard.Modules, Orchard.Packaging, Orchard.Themes, Orchard.Widgets, Orchard.Users, Orchard.Roles, Orchard.Comments, Orchard.jQuery, Orchard.Tags, TinyMce" },
|
||||||
new { extension = "core", names = "Common, Dashboard, Feeds, HomePage, Navigation, Contents, ContentsLocation, PublishLater, Routable, Scheduling, Settings, Shapes, XmlRpc" },
|
new { extension = "core", names = "Common, Dashboard, Feeds, HomePage, Navigation, Contents, PublishLater, Routable, Scheduling, Settings, Shapes, XmlRpc" },
|
||||||
new { extension = "theme", names = "SafeMode, TheAdmin, TheThemeMachine" }));
|
new { extension = "theme", names = "SafeMode, TheAdmin, TheThemeMachine" }));
|
||||||
|
|
||||||
webApp.WhenIGoTo("Setup");
|
webApp.WhenIGoTo("Setup");
|
||||||
|
@@ -7,7 +7,7 @@ Scenario: Root request shows setup form
|
|||||||
Given I have a clean site with
|
Given I have a clean site with
|
||||||
| extension | names |
|
| extension | names |
|
||||||
| module | Orchard.Setup, Orchard.Users, Orchard.Roles, Orchard.Comments, Orchard.Themes, Orchard.jQuery, TinyMce |
|
| module | Orchard.Setup, Orchard.Users, Orchard.Roles, Orchard.Comments, Orchard.Themes, Orchard.jQuery, TinyMce |
|
||||||
| core | Common, Contents, ContentsLocation, Dashboard, Feeds, HomePage, Navigation, Routable, PublishLater, Scheduling, Settings, Shapes, XmlRpc |
|
| core | Common, Contents, Dashboard, Feeds, HomePage, Navigation, Routable, PublishLater, Scheduling, Settings, Shapes, XmlRpc |
|
||||||
| theme | SafeMode |
|
| theme | SafeMode |
|
||||||
When I go to "/Default.aspx"
|
When I go to "/Default.aspx"
|
||||||
Then I should see "Welcome to Orchard"
|
Then I should see "Welcome to Orchard"
|
||||||
@@ -18,7 +18,7 @@ Scenario: Setup folder also shows setup form
|
|||||||
Given I have a clean site with
|
Given I have a clean site with
|
||||||
| extension | names |
|
| extension | names |
|
||||||
| module | Orchard.Setup, Orchard.Users, Orchard.Roles, Orchard.Comments, Orchard.Themes, Orchard.jQuery, TinyMce |
|
| module | Orchard.Setup, Orchard.Users, Orchard.Roles, Orchard.Comments, Orchard.Themes, Orchard.jQuery, TinyMce |
|
||||||
| core | Common, Contents, ContentsLocation, Dashboard, Feeds, HomePage, Navigation, Routable, PublishLater, Scheduling, Settings, Shapes, XmlRpc |
|
| core | Common, Contents, Dashboard, Feeds, HomePage, Navigation, Routable, PublishLater, Scheduling, Settings, Shapes, XmlRpc |
|
||||||
| theme | SafeMode |
|
| theme | SafeMode |
|
||||||
When I go to "/Setup"
|
When I go to "/Setup"
|
||||||
Then I should see "Welcome to Orchard"
|
Then I should see "Welcome to Orchard"
|
||||||
@@ -29,7 +29,7 @@ Scenario: Some of the initial form values are required
|
|||||||
Given I have a clean site with
|
Given I have a clean site with
|
||||||
| extension | names |
|
| extension | names |
|
||||||
| module | Orchard.Setup, Orchard.Users, Orchard.Roles, Orchard.Comments, Orchard.Themes, Orchard.jQuery, TinyMce |
|
| module | Orchard.Setup, Orchard.Users, Orchard.Roles, Orchard.Comments, Orchard.Themes, Orchard.jQuery, TinyMce |
|
||||||
| core | Common, Contents, ContentsLocation, Dashboard, Feeds, HomePage, Navigation, Routable, PublishLater, Scheduling, Settings, Shapes, XmlRpc |
|
| core | Common, Contents, Dashboard, Feeds, HomePage, Navigation, Routable, PublishLater, Scheduling, Settings, Shapes, XmlRpc |
|
||||||
| theme | SafeMode |
|
| theme | SafeMode |
|
||||||
When I go to "/Setup"
|
When I go to "/Setup"
|
||||||
And I hit "Finish Setup"
|
And I hit "Finish Setup"
|
||||||
@@ -40,7 +40,7 @@ Scenario: Calling setup on a brand new install
|
|||||||
Given I have a clean site with
|
Given I have a clean site with
|
||||||
| extension | names |
|
| extension | names |
|
||||||
| module | Orchard.Setup, Orchard.Users, Orchard.Roles, Orchard.Comments, Orchard.Themes, Orchard.Modules, Orchard.Widgets, Orchard.jQuery, TinyMce |
|
| module | Orchard.Setup, Orchard.Users, Orchard.Roles, Orchard.Comments, Orchard.Themes, Orchard.Modules, Orchard.Widgets, Orchard.jQuery, TinyMce |
|
||||||
| core | Common, Contents, ContentsLocation, Dashboard, Feeds, HomePage, Navigation, Routable, PublishLater, Scheduling, Settings, Shapes, XmlRpc |
|
| core | Common, Contents, Dashboard, Feeds, HomePage, Navigation, Routable, PublishLater, Scheduling, Settings, Shapes, XmlRpc |
|
||||||
| theme | SafeMode, TheThemeMachine |
|
| theme | SafeMode, TheThemeMachine |
|
||||||
And I am on "/Setup"
|
And I am on "/Setup"
|
||||||
When I fill in
|
When I fill in
|
||||||
|
20
src/Orchard.Specs/Setup.feature.cs
generated
20
src/Orchard.Specs/Setup.feature.cs
generated
@@ -1,7 +1,7 @@
|
|||||||
// ------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------
|
||||||
// <auto-generated>
|
// <auto-generated>
|
||||||
// This code was generated by SpecFlow (http://www.specflow.org/).
|
// This code was generated by SpecFlow (http://www.specflow.org/).
|
||||||
// SpecFlow Version:1.3.5.2
|
// SpecFlow Version:1.3.2.0
|
||||||
// Runtime Version:4.0.30319.1
|
// Runtime Version:4.0.30319.1
|
||||||
//
|
//
|
||||||
// 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
|
||||||
@@ -14,7 +14,7 @@ namespace Orchard.Specs
|
|||||||
using TechTalk.SpecFlow;
|
using TechTalk.SpecFlow;
|
||||||
|
|
||||||
|
|
||||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("TechTalk.SpecFlow", "1.3.5.2")]
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("TechTalk.SpecFlow", "1.3.2.0")]
|
||||||
[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||||
[NUnit.Framework.TestFixtureAttribute()]
|
[NUnit.Framework.TestFixtureAttribute()]
|
||||||
[NUnit.Framework.DescriptionAttribute("Setup")]
|
[NUnit.Framework.DescriptionAttribute("Setup")]
|
||||||
@@ -70,8 +70,8 @@ this.ScenarioSetup(scenarioInfo);
|
|||||||
"chard.jQuery, TinyMce"});
|
"chard.jQuery, TinyMce"});
|
||||||
table1.AddRow(new string[] {
|
table1.AddRow(new string[] {
|
||||||
"core",
|
"core",
|
||||||
"Common, Contents, ContentsLocation, Dashboard, Feeds, HomePage, Navigation, Routa" +
|
"Common, Contents, Dashboard, Feeds, HomePage, Navigation, Routable, PublishLater," +
|
||||||
"ble, PublishLater, Scheduling, Settings, Shapes, XmlRpc"});
|
" Scheduling, Settings, Shapes, XmlRpc"});
|
||||||
table1.AddRow(new string[] {
|
table1.AddRow(new string[] {
|
||||||
"theme",
|
"theme",
|
||||||
"SafeMode"});
|
"SafeMode"});
|
||||||
@@ -106,8 +106,8 @@ this.ScenarioSetup(scenarioInfo);
|
|||||||
"chard.jQuery, TinyMce"});
|
"chard.jQuery, TinyMce"});
|
||||||
table2.AddRow(new string[] {
|
table2.AddRow(new string[] {
|
||||||
"core",
|
"core",
|
||||||
"Common, Contents, ContentsLocation, Dashboard, Feeds, HomePage, Navigation, Routa" +
|
"Common, Contents, Dashboard, Feeds, HomePage, Navigation, Routable, PublishLater," +
|
||||||
"ble, PublishLater, Scheduling, Settings, Shapes, XmlRpc"});
|
" Scheduling, Settings, Shapes, XmlRpc"});
|
||||||
table2.AddRow(new string[] {
|
table2.AddRow(new string[] {
|
||||||
"theme",
|
"theme",
|
||||||
"SafeMode"});
|
"SafeMode"});
|
||||||
@@ -142,8 +142,8 @@ this.ScenarioSetup(scenarioInfo);
|
|||||||
"chard.jQuery, TinyMce"});
|
"chard.jQuery, TinyMce"});
|
||||||
table3.AddRow(new string[] {
|
table3.AddRow(new string[] {
|
||||||
"core",
|
"core",
|
||||||
"Common, Contents, ContentsLocation, Dashboard, Feeds, HomePage, Navigation, Routa" +
|
"Common, Contents, Dashboard, Feeds, HomePage, Navigation, Routable, PublishLater," +
|
||||||
"ble, PublishLater, Scheduling, Settings, Shapes, XmlRpc"});
|
" Scheduling, Settings, Shapes, XmlRpc"});
|
||||||
table3.AddRow(new string[] {
|
table3.AddRow(new string[] {
|
||||||
"theme",
|
"theme",
|
||||||
"SafeMode"});
|
"SafeMode"});
|
||||||
@@ -180,8 +180,8 @@ this.ScenarioSetup(scenarioInfo);
|
|||||||
"chard.Modules, Orchard.Widgets, Orchard.jQuery, TinyMce"});
|
"chard.Modules, Orchard.Widgets, Orchard.jQuery, TinyMce"});
|
||||||
table4.AddRow(new string[] {
|
table4.AddRow(new string[] {
|
||||||
"core",
|
"core",
|
||||||
"Common, Contents, ContentsLocation, Dashboard, Feeds, HomePage, Navigation, Routa" +
|
"Common, Contents, Dashboard, Feeds, HomePage, Navigation, Routable, PublishLater," +
|
||||||
"ble, PublishLater, Scheduling, Settings, Shapes, XmlRpc"});
|
" Scheduling, Settings, Shapes, XmlRpc"});
|
||||||
table4.AddRow(new string[] {
|
table4.AddRow(new string[] {
|
||||||
"theme",
|
"theme",
|
||||||
"SafeMode, TheThemeMachine"});
|
"SafeMode, TheThemeMachine"});
|
||||||
|
@@ -71,7 +71,6 @@ namespace Orchard.Setup.Services {
|
|||||||
"Shapes",
|
"Shapes",
|
||||||
"PublishLater",
|
"PublishLater",
|
||||||
"Contents",
|
"Contents",
|
||||||
"ContentsLocation",
|
|
||||||
"Dashboard",
|
"Dashboard",
|
||||||
"Reports",
|
"Reports",
|
||||||
"Feeds",
|
"Feeds",
|
||||||
|
Reference in New Issue
Block a user