Fixing/improving more spec flows.

--HG--
branch : dev
This commit is contained in:
Andre Rodrigues
2011-03-07 13:37:46 -08:00
parent e7a2ce067b
commit 0361a7103a
4 changed files with 8 additions and 8 deletions

View File

@@ -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"

View File

@@ -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

View File

@@ -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

View File

@@ -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();
}