mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Adding some UI to manage module features
--HG-- branch : dev
This commit is contained in:
@@ -3,9 +3,21 @@
|
||||
As a root Orchard system operator
|
||||
I want to install and enable modules and enable features
|
||||
|
||||
Scenario: Default modules are listed
|
||||
Scenario: Installed modules are listed
|
||||
Given I have installed Orchard
|
||||
When I go to "admin/modules"
|
||||
Then I should see "Installed Modules"
|
||||
Then I should see "<h2>Installed Modules</h2>"
|
||||
And I should see "<h3>Themes</h3>"
|
||||
And the status should be 200 OK
|
||||
|
||||
Scenario: Edit module shows its features
|
||||
Given I have installed Orchard
|
||||
When I go to "admin/modules/Edit/Orchard.Themes"
|
||||
Then I should see "<h1>Edit Module: Themes</h1>"
|
||||
And the status should be 200 OK
|
||||
|
||||
Scenario: Features of installed modules are listed
|
||||
Given I have installed Orchard
|
||||
When I go to "admin/modules/features"
|
||||
Then I should see "<h2>Available Features</h2>"
|
||||
And the status should be 200 OK
|
46
src/Orchard.Specs/Modules.feature.cs
generated
46
src/Orchard.Specs/Modules.feature.cs
generated
@@ -51,10 +51,10 @@ namespace Orchard.Specs
|
||||
}
|
||||
|
||||
[NUnit.Framework.TestAttribute()]
|
||||
[NUnit.Framework.DescriptionAttribute("Default modules are listed")]
|
||||
public virtual void DefaultModulesAreListed()
|
||||
[NUnit.Framework.DescriptionAttribute("Installed modules are listed")]
|
||||
public virtual void InstalledModulesAreListed()
|
||||
{
|
||||
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Default modules are listed", ((string[])(null)));
|
||||
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Installed modules are listed", ((string[])(null)));
|
||||
#line 6
|
||||
this.ScenarioSetup(scenarioInfo);
|
||||
#line 7
|
||||
@@ -62,11 +62,49 @@ this.ScenarioSetup(scenarioInfo);
|
||||
#line 8
|
||||
testRunner.When("I go to \"admin/modules\"");
|
||||
#line 9
|
||||
testRunner.Then("I should see \"Installed Modules\"");
|
||||
testRunner.Then("I should see \"<h2>Installed Modules</h2>\"");
|
||||
#line 10
|
||||
testRunner.And("I should see \"<h3>Themes</h3>\"");
|
||||
#line 11
|
||||
testRunner.And("the status should be 200 OK");
|
||||
#line hidden
|
||||
testRunner.CollectScenarioErrors();
|
||||
}
|
||||
|
||||
[NUnit.Framework.TestAttribute()]
|
||||
[NUnit.Framework.DescriptionAttribute("Edit module shows its features")]
|
||||
public virtual void EditModuleShowsItsFeatures()
|
||||
{
|
||||
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Edit module shows its features", ((string[])(null)));
|
||||
#line 13
|
||||
this.ScenarioSetup(scenarioInfo);
|
||||
#line 14
|
||||
testRunner.Given("I have installed Orchard");
|
||||
#line 15
|
||||
testRunner.When("I go to \"admin/modules/Edit/Orchard.Themes\"");
|
||||
#line 16
|
||||
testRunner.Then("I should see \"<h1>Edit Module: Themes</h1>\"");
|
||||
#line 17
|
||||
testRunner.And("the status should be 200 OK");
|
||||
#line hidden
|
||||
testRunner.CollectScenarioErrors();
|
||||
}
|
||||
|
||||
[NUnit.Framework.TestAttribute()]
|
||||
[NUnit.Framework.DescriptionAttribute("Features of installed modules are listed")]
|
||||
public virtual void FeaturesOfInstalledModulesAreListed()
|
||||
{
|
||||
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Features of installed modules are listed", ((string[])(null)));
|
||||
#line 19
|
||||
this.ScenarioSetup(scenarioInfo);
|
||||
#line 20
|
||||
testRunner.Given("I have installed Orchard");
|
||||
#line 21
|
||||
testRunner.When("I go to \"admin/modules/features\"");
|
||||
#line 22
|
||||
testRunner.Then("I should see \"<h2>Available Features</h2>\"");
|
||||
#line 23
|
||||
testRunner.And("the status should be 200 OK");
|
||||
#line hidden
|
||||
testRunner.CollectScenarioErrors();
|
||||
}
|
||||
|
Reference in New Issue
Block a user