Commit ae51a6f4 authored by Aaron Wells's avatar Aaron Wells
Browse files

Update Behat "expand fieldsets" command (Bug 1465462)

The HTML for this has changed because of Bootstrap.

Change-Id: I503c6c9c616c53aa3b64230ac669fff8c0c68369
parent 18a21818
......@@ -66,10 +66,8 @@ class BehatForms extends BehatBase {
try {
// Expand fieldsets link.
$xpath = "//fieldset[contains(concat(' ', @class, ' '), ' collapsible ')"
. " and contains(concat(' ', @class, ' '), ' collapsed ')"
. "]"
. "/legend/descendant::a";
$xpath = "//fieldset[contains(concat(' ', @class, ' '), ' collapsible ')]"
. "/legend/descendant::a[contains(concat(' ', @class, ' '), ' collapsed ')]";
while ($collapseexpandlink = $this->find('xpath', $xpath, false, false, self::REDUCED_TIMEOUT)) {
$collapseexpandlink->click();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment