mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-51088 completion: Do not require hover to confirm xpath
This commit is contained in:
parent
dda862abb5
commit
4569c6966a
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user