mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Fixing widget layer editing and tidying up the widget management index template.
work item: 16837 --HG-- branch : dev
This commit is contained in:
@@ -170,8 +170,10 @@ namespace Orchard.Specs.Bindings {
|
||||
[When(@"I follow ""(.*)""")]
|
||||
public void WhenIFollow(string linkText) {
|
||||
var link = _doc.DocumentNode
|
||||
.SelectNodes("//a")
|
||||
.Single(elt => elt.InnerText == linkText);
|
||||
.SelectNodes("//a")
|
||||
.SingleOrDefault(elt => elt.InnerText == linkText)
|
||||
?? _doc.DocumentNode
|
||||
.SelectSingleNode(string.Format("//a[@title='{0}']", linkText));
|
||||
|
||||
var urlPath = link.Attributes["href"].Value;
|
||||
|
||||
|
Reference in New Issue
Block a user