MDL-51088 completion: Do not require hover to confirm xpath

This commit is contained in:
Andrew Nicols
2015-08-14 07:57:59 +08:00
parent f5e48d21ec
commit 1a7fcb9d52
+4 -3
View File
@@ -27,7 +27,8 @@
require_once(__DIR__ . '/../../../lib/behat/behat_base.php');
use Behat\Behat\Context\Step\Given as Given,
use Behat\Behat\Context\Step\Given,
Behat\Behat\Context\Step\Then,
Behat\Mink\Exception\ElementNotFoundException as ElementNotFoundException;
/**
@@ -56,7 +57,7 @@ class behat_completion extends behat_base {
return array(
new Given('I go to the current course activity completion report'),
new Given('I hover "' . $this->escape($xpath) . '" "xpath_element"')
new Then('"' . $this->escape($xpath) . '" "xpath_element" should exist')
);
}
@@ -75,7 +76,7 @@ class behat_completion extends behat_base {
"/descendant::img[contains(@title, $titleliteral)]";
return array(
new Given('I go to the current course activity completion report'),
new Given('I hover "' . $this->escape($xpath) . '" "xpath_element"')
new Then('"' . $this->escape($xpath) . '" "xpath_element" should exist')
);
return $steps;