Improved specflow I Follow href filter test to use quotes like others

--HG--
branch : dev
This commit is contained in:
Dave Reed
2011-03-18 11:49:18 -07:00
parent 4b223d2da2
commit c1be9e8735
3 changed files with 6 additions and 6 deletions

View File

@@ -191,7 +191,7 @@ namespace Orchard.Specs.Bindings {
_doc.Load(new StringReader(Details.ResponseText));
}
[When(@"I follow ""(.*)""")]
[When(@"I follow ""([^""]*)""")]
public void WhenIFollow(string linkText) {
var link = _doc.DocumentNode
.SelectNodes("//a")
@@ -204,7 +204,7 @@ namespace Orchard.Specs.Bindings {
WhenIGoTo(urlPath);
}
[When(@"I follow ""(.*)"" where href has (.+)$")]
[When(@"I follow ""([^""]+)"" where href has ""([^""]+)""")]
public void WhenIFollow(string linkText, string hrefFilter) {
var link = _doc.DocumentNode
.SelectNodes("//a[@href]").Where(elt =>

View File

@@ -25,9 +25,9 @@ Scenario: I can add content items to a list
Then I should see "MyList"
When I follow "Contained Items"
Then I should see "The 'MyList' List has no content items."
When I follow "Create New Content" where href has ReturnUrl
When I follow "Create New Content" where href has "ReturnUrl"
Then I should see "MyType"
When I follow "MyType" where href has ReturnUrl
When I follow "MyType" where href has "ReturnUrl"
And I fill in
| name | value |
| Routable.Title | MyContentItem |

View File

@@ -115,11 +115,11 @@ this.ScenarioSetup(scenarioInfo);
#line 27
testRunner.Then("I should see \"The \'MyList\' List has no content items.\"");
#line 28
testRunner.When("I follow \"Create New Content\" where href has ReturnUrl");
testRunner.When("I follow \"Create New Content\" where href has \"ReturnUrl\"");
#line 29
testRunner.Then("I should see \"MyType\"");
#line 30
testRunner.When("I follow \"MyType\" where href has ReturnUrl");
testRunner.When("I follow \"MyType\" where href has \"ReturnUrl\"");
#line hidden
TechTalk.SpecFlow.Table table3 = new TechTalk.SpecFlow.Table(new string[] {
"name",