mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Fix specflow test
--HG-- branch : dev
This commit is contained in:
@@ -9,8 +9,8 @@
|
||||
<components>
|
||||
|
||||
<component instance-scope="single-instance"
|
||||
type="Orchard.Specs.Hosting.TraceEnabledSessionFactoryBuilder, Orchard.Specs"
|
||||
service="Orchard.Data.Builders.ISessionFactoryBuilder, Orchard.Framework"/>
|
||||
type="Orchard.Specs.Hosting.TraceEnabledDataServicesProviderFactory, Orchard.Specs"
|
||||
service="Orchard.Data.Providers.IDataServicesProviderFactory, Orchard.Framework"/>
|
||||
|
||||
</components>
|
||||
</autofac>
|
||||
|
||||
@@ -41,6 +41,7 @@ Scenario: Calling setup on a brand new install
|
||||
| name | value |
|
||||
| SiteName | My Site |
|
||||
| AdminPassword | 6655321 |
|
||||
| ConfirmPassword | 6655321 |
|
||||
And I hit "Finish Setup"
|
||||
And I go to "/Default.aspx"
|
||||
Then I should see "<h1>My Site</h1>"
|
||||
|
||||
21
src/Orchard.Specs/Setup.feature.cs
generated
21
src/Orchard.Specs/Setup.feature.cs
generated
@@ -1,18 +1,21 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by SpecFlow (http://www.specflow.org/).
|
||||
// SpecFlow Version:1.2.0.0
|
||||
// Runtime Version:2.0.50727.4200
|
||||
// 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
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
// ------------------------------------------------------------------------------
|
||||
#region Designer generated code
|
||||
namespace Orchard.Specs
|
||||
{
|
||||
using TechTalk.SpecFlow;
|
||||
|
||||
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("TechTalk.SpecFlow", "1.3.2.0")]
|
||||
[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[NUnit.Framework.TestFixtureAttribute()]
|
||||
[NUnit.Framework.DescriptionAttribute("Setup")]
|
||||
public partial class SetupFeature
|
||||
@@ -160,20 +163,24 @@ this.ScenarioSetup(scenarioInfo);
|
||||
table2.AddRow(new string[] {
|
||||
"AdminPassword",
|
||||
"6655321"});
|
||||
table2.AddRow(new string[] {
|
||||
"ConfirmPassword",
|
||||
"6655321"});
|
||||
#line 40
|
||||
testRunner.When("I fill in", ((string)(null)), table2);
|
||||
#line 44
|
||||
testRunner.And("I hit \"Finish Setup\"");
|
||||
#line 45
|
||||
testRunner.And("I go to \"/Default.aspx\"");
|
||||
testRunner.And("I hit \"Finish Setup\"");
|
||||
#line 46
|
||||
testRunner.Then("I should see \"<h1>My Site</h1>\"");
|
||||
testRunner.And("I go to \"/Default.aspx\"");
|
||||
#line 47
|
||||
testRunner.And("I should see \"Welcome, <strong>admin</strong>!\"");
|
||||
testRunner.Then("I should see \"<h1>My Site</h1>\"");
|
||||
#line 48
|
||||
testRunner.And("I should see \"Welcome, <strong>admin</strong>!\"");
|
||||
#line 49
|
||||
testRunner.And("I should see \"you\'ve successfully set-up your Orchard site\"");
|
||||
#line hidden
|
||||
testRunner.CollectScenarioErrors();
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
Reference in New Issue
Block a user