mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Fixing some spec flows.
--HG-- branch : dev
This commit is contained in:
@@ -6,7 +6,12 @@
|
|||||||
Scenario: Installed modules are listed
|
Scenario: Installed modules are listed
|
||||||
Given I have installed Orchard
|
Given I have installed Orchard
|
||||||
When I go to "admin/modules"
|
When I go to "admin/modules"
|
||||||
Then I should see "<h1>Installed Modules</h1>"
|
Then I should see "<h1 id="page-title">Modules</h1>"
|
||||||
|
When I fill in
|
||||||
|
| name | value |
|
||||||
|
| Options.SearchText | Themes |
|
||||||
|
And I hit "Search"
|
||||||
|
Then I should see "<h1 id="page-title">Modules</h1>"
|
||||||
And I should see "<h2>Themes"
|
And I should see "<h2>Themes"
|
||||||
And the status should be 200 "OK"
|
And the status should be 200 "OK"
|
||||||
|
|
||||||
|
41
src/Orchard.Specs/Modules.feature.cs
generated
41
src/Orchard.Specs/Modules.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.4.0.0
|
// SpecFlow Version:1.5.0.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.4.0.0")]
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("TechTalk.SpecFlow", "1.5.0.0")]
|
||||||
[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||||
[NUnit.Framework.TestFixtureAttribute()]
|
[NUnit.Framework.TestFixtureAttribute()]
|
||||||
[NUnit.Framework.DescriptionAttribute("Module management")]
|
[NUnit.Framework.DescriptionAttribute("Module management")]
|
||||||
@@ -65,10 +65,23 @@ this.ScenarioSetup(scenarioInfo);
|
|||||||
#line 8
|
#line 8
|
||||||
testRunner.When("I go to \"admin/modules\"");
|
testRunner.When("I go to \"admin/modules\"");
|
||||||
#line 9
|
#line 9
|
||||||
testRunner.Then("I should see \"<h1>Installed Modules</h1>\"");
|
testRunner.Then("I should see \"<h1 id=\"page-title\">Modules</h1>\"");
|
||||||
|
#line hidden
|
||||||
|
TechTalk.SpecFlow.Table table1 = new TechTalk.SpecFlow.Table(new string[] {
|
||||||
|
"name",
|
||||||
|
"value"});
|
||||||
|
table1.AddRow(new string[] {
|
||||||
|
"Options.SearchText",
|
||||||
|
"Themes"});
|
||||||
#line 10
|
#line 10
|
||||||
|
testRunner.When("I fill in", ((string)(null)), table1);
|
||||||
|
#line 13
|
||||||
|
testRunner.And("I hit \"Search\"");
|
||||||
|
#line 14
|
||||||
|
testRunner.Then("I should see \"<h1 id=\"page-title\">Modules</h1>\"");
|
||||||
|
#line 15
|
||||||
testRunner.And("I should see \"<h2>Themes\"");
|
testRunner.And("I should see \"<h2>Themes\"");
|
||||||
#line 11
|
#line 16
|
||||||
testRunner.And("the status should be 200 \"OK\"");
|
testRunner.And("the status should be 200 \"OK\"");
|
||||||
#line hidden
|
#line hidden
|
||||||
testRunner.CollectScenarioErrors();
|
testRunner.CollectScenarioErrors();
|
||||||
@@ -79,17 +92,17 @@ this.ScenarioSetup(scenarioInfo);
|
|||||||
public virtual void FeaturesOfInstalledModulesAreListed()
|
public virtual void FeaturesOfInstalledModulesAreListed()
|
||||||
{
|
{
|
||||||
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Features of installed modules are listed", ((string[])(null)));
|
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Features of installed modules are listed", ((string[])(null)));
|
||||||
#line 13
|
|
||||||
this.ScenarioSetup(scenarioInfo);
|
|
||||||
#line 14
|
|
||||||
testRunner.Given("I have installed Orchard");
|
|
||||||
#line 15
|
|
||||||
testRunner.When("I go to \"admin/modules/features\"");
|
|
||||||
#line 16
|
|
||||||
testRunner.Then("I should see \"<h3>Common</h3>\"");
|
|
||||||
#line 17
|
|
||||||
testRunner.And("I should see \"<li class=\"feature enabled\" id=\"contents-feature\"[^>]*>\"");
|
|
||||||
#line 18
|
#line 18
|
||||||
|
this.ScenarioSetup(scenarioInfo);
|
||||||
|
#line 19
|
||||||
|
testRunner.Given("I have installed Orchard");
|
||||||
|
#line 20
|
||||||
|
testRunner.When("I go to \"admin/modules/features\"");
|
||||||
|
#line 21
|
||||||
|
testRunner.Then("I should see \"<h3>Common</h3>\"");
|
||||||
|
#line 22
|
||||||
|
testRunner.And("I should see \"<li class=\"feature enabled\" id=\"contents-feature\"[^>]*>\"");
|
||||||
|
#line 23
|
||||||
testRunner.And("the status should be 200 \"OK\"");
|
testRunner.And("the status should be 200 \"OK\"");
|
||||||
#line hidden
|
#line hidden
|
||||||
testRunner.CollectScenarioErrors();
|
testRunner.CollectScenarioErrors();
|
||||||
|
@@ -110,7 +110,7 @@ Scenario: An existing initialized tenant cannot have its database option cleared
|
|||||||
| ConfirmPassword | 6655321 |
|
| ConfirmPassword | 6655321 |
|
||||||
And I hit "Finish Setup"
|
And I hit "Finish Setup"
|
||||||
And I go to "/Admin/MultiTenancy/Edit/Scott" on host localhost
|
And I go to "/Admin/MultiTenancy/Edit/Scott" on host localhost
|
||||||
Then I should see "<h1>Edit Tenant</h1>"
|
Then I should see "<h1 id="page-title">Edit Tenant</h1>"
|
||||||
And I should see "<h2>Scott</h2>"
|
And I should see "<h2>Scott</h2>"
|
||||||
And I should not see "Allow the tenant to set up the database"
|
And I should not see "Allow the tenant to set up the database"
|
||||||
|
|
||||||
|
6
src/Orchard.Specs/MultiTenancy.feature.cs
generated
6
src/Orchard.Specs/MultiTenancy.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.4.0.0
|
// SpecFlow Version:1.5.0.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.4.0.0")]
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("TechTalk.SpecFlow", "1.5.0.0")]
|
||||||
[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||||
[NUnit.Framework.TestFixtureAttribute()]
|
[NUnit.Framework.TestFixtureAttribute()]
|
||||||
[NUnit.Framework.DescriptionAttribute("Multiple tenant management")]
|
[NUnit.Framework.DescriptionAttribute("Multiple tenant management")]
|
||||||
@@ -355,7 +355,7 @@ this.ScenarioSetup(scenarioInfo);
|
|||||||
#line 112
|
#line 112
|
||||||
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 113
|
#line 113
|
||||||
testRunner.Then("I should see \"<h1>Edit Tenant</h1>\"");
|
testRunner.Then("I should see \"<h1 id=\"page-title\">Edit Tenant</h1>\"");
|
||||||
#line 114
|
#line 114
|
||||||
testRunner.And("I should see \"<h2>Scott</h2>\"");
|
testRunner.And("I should see \"<h2>Scott</h2>\"");
|
||||||
#line 115
|
#line 115
|
||||||
|
@@ -14,7 +14,7 @@
|
|||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
<div class="properties">
|
<div class="properties">
|
||||||
<h2 class="@moduleClasses">@Model.ContentPart.Descriptor.Name<span> - @T("Version: {0}", !string.IsNullOrEmpty(Model.ContentPart.Descriptor.Version) ? Model.ContentPart.Descriptor.Version : T("1.0").ToString())</span></h2>
|
<h2@{ if(!string.IsNullOrEmpty(moduleClasses)) {<text> class="@moduleClasses"</text>}}>@Model.ContentPart.Descriptor.Name<span> - @T("Version: {0}", !string.IsNullOrEmpty(Model.ContentPart.Descriptor.Version) ? Model.ContentPart.Descriptor.Version : T("1.0").ToString())</span></h2>
|
||||||
|
|
||||||
@if (!string.IsNullOrEmpty(Model.ContentPart.Descriptor.Description)) {
|
@if (!string.IsNullOrEmpty(Model.ContentPart.Descriptor.Description)) {
|
||||||
<p>@Model.ContentPart.Descriptor.Description</p>
|
<p>@Model.ContentPart.Descriptor.Description</p>
|
||||||
|
@@ -5,8 +5,7 @@
|
|||||||
@{ string themeClasses = Model.ContentPart.IsRecentlyInstalled ? "recentlyInstalledTheme" : string.Empty; }
|
@{ string themeClasses = Model.ContentPart.IsRecentlyInstalled ? "recentlyInstalledTheme" : string.Empty; }
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
|
<h3@{ if(!string.IsNullOrEmpty(themeClasses)) {<text> class="@themeClasses"</text>}}>@Model.ContentPart.Name</h3>
|
||||||
<h3 class="@themeClasses">@Model.ContentPart.Name</h3>
|
|
||||||
|
|
||||||
@Html.Image(Href(Html.ThemePath((ExtensionDescriptor) Model.ContentPart.Descriptor, "/Theme.png")), Html.Encode((string)Model.ContentPart.Name), null)
|
@Html.Image(Href(Html.ThemePath((ExtensionDescriptor) Model.ContentPart.Descriptor, "/Theme.png")), Html.Encode((string)Model.ContentPart.Name), null)
|
||||||
@using (Html.BeginFormAntiForgeryPost(Url.Action("Activate"), FormMethod.Post, new { @class = "inline" })) {
|
@using (Html.BeginFormAntiForgeryPost(Url.Action("Activate"), FormMethod.Post, new { @class = "inline" })) {
|
||||||
|
Reference in New Issue
Block a user