Fix typo in callback name

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
This commit is contained in:
Daniel Calviño Sánchez 2017-12-22 08:57:50 +01:00 committed by Morris Jobke
parent 1b43184aeb
commit 41a52064c0
No known key found for this signature in database
GPG Key ID: FE03C3A163FEDE68
1 changed files with 2 additions and 2 deletions

View File

@ -520,7 +520,7 @@ class FilesAppContext implements Context, ActorAwareInterface {
private function waitForElementToBeEventuallyNotShown($elementLocator, $timeout = 10, $timeoutStep = 1) {
$actor = $this->actor;
$elementNotFoundCallback = function() use ($actor, $elementLocator) {
$elementNotShownCallback = function() use ($actor, $elementLocator) {
try {
return !$actor->find($elementLocator)->isVisible();
} catch (NoSuchElementException $exception) {
@ -528,6 +528,6 @@ class FilesAppContext implements Context, ActorAwareInterface {
}
};
return Utils::waitFor($elementNotFoundCallback, $timeout, $timeoutStep);
return Utils::waitFor($elementNotShownCallback, $timeout, $timeoutStep);
}
}