Skip to content

Commit

Permalink
MDL-51088 completion: Do not require hover to confirm xpath
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols committed Aug 13, 2015
1 parent dda862a commit 4569c69
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions completion/tests/behat/behat_completion.php
Expand Up @@ -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;

/**
Expand Down Expand Up @@ -56,7 +57,7 @@ public function user_has_completed_activity($userfullname, $activityname) {

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')
);
}

Expand All @@ -75,7 +76,7 @@ public function user_has_not_completed_activity($userfullname, $activityname) {
"/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;
Expand Down

0 comments on commit 4569c69

Please sign in to comment.