From 1a7fcb9d521955e8ac68cf922ed75c4b0697ef52 Mon Sep 17 00:00:00 2001 From: Andrew Nicols Date: Wed, 12 Aug 2015 19:34:49 +0800 Subject: [PATCH] MDL-51088 completion: Do not require hover to confirm xpath --- completion/tests/behat/behat_completion.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/completion/tests/behat/behat_completion.php b/completion/tests/behat/behat_completion.php index 5125a88ece2..6790dbf9ca6 100644 --- a/completion/tests/behat/behat_completion.php +++ b/completion/tests/behat/behat_completion.php @@ -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;