mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 11:44:58 +08:00
Added some more SpecFlow tests for MultiTenancy and fixed a few bugs
--HG-- branch : dev
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user