Added some more SpecFlow tests for MultiTenancy and fixed a few bugs

--HG--
branch : dev
This commit is contained in:
Nathan Heskew
2010-05-14 10:03:16 -07:00
parent bd7bb210a1
commit aa4d8e3773
6 changed files with 266 additions and 11 deletions

View File

@@ -184,8 +184,7 @@ namespace Orchard.Specs.Bindings {
[When(@"I hit ""(.*)""")]
public void WhenIHit(string submitText) {
var submit = _doc.DocumentNode
.SelectNodes("//input[@type='submit']")
.Single(elt => elt.GetAttributeValue("value", null) == submitText);
.SelectSingleNode(string.Format("(//input[@type='submit'][@value='{0}']|//button[@type='submit'][text()='{0}'])", submitText));
var form = Form.LocateAround(submit);
var urlPath = form.Start.GetAttributeValue("action", Details.UrlPath);