Skip to content

Commit f2d82aa

Browse files
author
Olexandr Lysenko
committed
Merge remote-tracking branch 'mainline/2.1-develop' into bugfixes_2.1.4
2 parents 5295f80 + 2afafac commit f2d82aa

File tree

1 file changed

+13
-6
lines changed
  • dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Product

1 file changed

+13
-6
lines changed

dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Product/View.php

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -567,12 +567,19 @@ public function clickBaseImage()
567567
*/
568568
public function closeFullImage()
569569
{
570-
$element = $this->browser->find($this->fullImageClose, Locator::SELECTOR_CSS);
571-
if (!$element->isVisible()) {
572-
$element->hover();
573-
$this->waitForElementVisible($this->fullImageClose);
574-
}
575-
$element->click();
570+
$this->_rootElement->waitUntil(
571+
function () {
572+
$this->browser->find($this->fullImage)->hover();
573+
574+
if ($this->browser->find($this->fullImageClose)->isVisible()) {
575+
$this->browser->find($this->fullImageClose)->click();
576+
577+
return true;
578+
}
579+
580+
return null;
581+
}
582+
);
576583
}
577584

578585
/**

0 commit comments

Comments
 (0)