mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Fixing a Modules.feature spec test to follow recent admin UI changes.
--HG-- branch : dev
This commit is contained in:
@@ -13,6 +13,6 @@ Scenario: Installed modules are listed
|
||||
Scenario: Features of installed modules are listed
|
||||
Given I have installed Orchard
|
||||
When I go to "admin/modules/features"
|
||||
Then I should see "<h1>Manage Features</h1>"
|
||||
And I should see "<h3>Common</h3>"
|
||||
Then I should see "<h3>Common</h3>"
|
||||
And I should see "<li class="feature enabled" id="contents-feature"[^>]*>"
|
||||
And the status should be 200 "OK"
|
26
src/Orchard.Specs/Modules.feature.cs
generated
26
src/Orchard.Specs/Modules.feature.cs
generated
@@ -1,7 +1,7 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by SpecFlow (http://www.specflow.org/).
|
||||
// SpecFlow Version:1.3.2.0
|
||||
// SpecFlow Version:1.4.0.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.2.0")]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("TechTalk.SpecFlow", "1.4.0.0")]
|
||||
[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[NUnit.Framework.TestFixtureAttribute()]
|
||||
[NUnit.Framework.DescriptionAttribute("Module 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"), "Module management", "In order add and enable features\r\nAs a root Orchard system operator\r\nI want to in" +
|
||||
"stall and enable modules and enable features", ((string[])(null)));
|
||||
"stall and enable modules and enable features", GenerationTargetLanguage.CSharp, ((string[])(null)));
|
||||
testRunner.OnFeatureStart(featureInfo);
|
||||
}
|
||||
|
||||
@@ -61,15 +61,15 @@ 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/modules\"");
|
||||
testRunner.When("I go to \"admin/modules\"");
|
||||
#line 9
|
||||
testRunner.Then("I should see \"<h1>Installed Modules</h1>\"");
|
||||
testRunner.Then("I should see \"<h1>Installed Modules</h1>\"");
|
||||
#line 10
|
||||
testRunner.And("I should see \"<h2>Themes\"");
|
||||
testRunner.And("I should see \"<h2>Themes\"");
|
||||
#line 11
|
||||
testRunner.And("the status should be 200 \"OK\"");
|
||||
testRunner.And("the status should be 200 \"OK\"");
|
||||
#line hidden
|
||||
testRunner.CollectScenarioErrors();
|
||||
}
|
||||
@@ -82,15 +82,15 @@ testRunner.And("the status should be 200 \"OK\"");
|
||||
#line 13
|
||||
this.ScenarioSetup(scenarioInfo);
|
||||
#line 14
|
||||
testRunner.Given("I have installed Orchard");
|
||||
testRunner.Given("I have installed Orchard");
|
||||
#line 15
|
||||
testRunner.When("I go to \"admin/modules/features\"");
|
||||
testRunner.When("I go to \"admin/modules/features\"");
|
||||
#line 16
|
||||
testRunner.Then("I should see \"<h1>Manage Features</h1>\"");
|
||||
testRunner.Then("I should see \"<h3>Common</h3>\"");
|
||||
#line 17
|
||||
testRunner.And("I should see \"<h3>Common</h3>\"");
|
||||
testRunner.And("I should see \"<li class=\"feature enabled\" id=\"contents-feature\"[^>]*>\"");
|
||||
#line 18
|
||||
testRunner.And("the status should be 200 \"OK\"");
|
||||
testRunner.And("the status should be 200 \"OK\"");
|
||||
#line hidden
|
||||
testRunner.CollectScenarioErrors();
|
||||
}
|
||||
|
Reference in New Issue
Block a user