mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Fixing/improving more spec flows.
--HG-- branch : dev
This commit is contained in:
@@ -12,12 +12,12 @@ Scenario: Installed modules are listed
|
||||
| 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"
|
||||
|
||||
Scenario: Features of installed modules are listed
|
||||
Given I have installed Orchard
|
||||
When I go to "admin/modules/features"
|
||||
Then I should see "<h3>Common</h3>"
|
||||
And I should see "<li class="feature enabled" id="contents-feature"[^>]*>"
|
||||
And I should see "<li class="feature enabled[^"]*" id="contents-feature"[^>]*>"
|
||||
And the status should be 200 "OK"
|
4
src/Orchard.Specs/Modules.feature.cs
generated
4
src/Orchard.Specs/Modules.feature.cs
generated
@@ -80,7 +80,7 @@ this.ScenarioSetup(scenarioInfo);
|
||||
#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 16
|
||||
testRunner.And("the status should be 200 \"OK\"");
|
||||
#line hidden
|
||||
@@ -101,7 +101,7 @@ this.ScenarioSetup(scenarioInfo);
|
||||
#line 21
|
||||
testRunner.Then("I should see \"<h3>Common</h3>\"");
|
||||
#line 22
|
||||
testRunner.And("I should see \"<li class=\"feature enabled\" id=\"contents-feature\"[^>]*>\"");
|
||||
testRunner.And("I should see \"<li class=\"feature enabled[^\"]*\" id=\"contents-feature\"[^>]*>\"");
|
||||
#line 23
|
||||
testRunner.And("the status should be 200 \"OK\"");
|
||||
#line hidden
|
||||
|
@@ -6,7 +6,7 @@
|
||||
Scenario: In the admin (menu) there is a link to create a Page
|
||||
Given I have installed Orchard
|
||||
When I go to "admin"
|
||||
Then I should see "<a href="/Admin/Contents/Create/Page">Page</a>"
|
||||
Then I should see "<a href="/Admin/Contents/Create/Page"[^>]*>Page</a>"
|
||||
|
||||
Scenario: I can create and publish a new Page
|
||||
Given I have installed Orchard
|
||||
|
6
src/Orchard.Specs/Pages.feature.cs
generated
6
src/Orchard.Specs/Pages.feature.cs
generated
@@ -1,7 +1,7 @@
|
||||
// ------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 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
|
||||
//
|
||||
// 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.4.0.0")]
|
||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("TechTalk.SpecFlow", "1.5.0.0")]
|
||||
[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[NUnit.Framework.TestFixtureAttribute()]
|
||||
[NUnit.Framework.DescriptionAttribute("Pages")]
|
||||
@@ -65,7 +65,7 @@ this.ScenarioSetup(scenarioInfo);
|
||||
#line 8
|
||||
testRunner.When("I go to \"admin\"");
|
||||
#line 9
|
||||
testRunner.Then("I should see \"<a href=\"/Admin/Contents/Create/Page\">Page</a>\"");
|
||||
testRunner.Then("I should see \"<a href=\"/Admin/Contents/Create/Page\"[^>]*>Page</a>\"");
|
||||
#line hidden
|
||||
testRunner.CollectScenarioErrors();
|
||||
}
|
||||
|
Reference in New Issue
Block a user