Skip to content

Commit 1127146

Browse files
author
Yaroslav Onischenko
committed
MAGETWO-52973: Sample data throws exception on installation
1 parent 827b8a7 commit 1127146

File tree

1 file changed

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

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,12 @@ public function clickBaseImage()
558558
*/
559559
public function closeFullImage()
560560
{
561-
$this->browser->find($this->fullImageClose, Locator::SELECTOR_CSS)->click();
561+
$element = $this->browser->find($this->fullImageClose, Locator::SELECTOR_CSS);
562+
if (!$element->isVisible()) {
563+
$element->hover();
564+
$this->waitForElementVisible($this->fullImageClose);
565+
}
566+
$element->click();
562567
}
563568

564569
/**

0 commit comments

Comments
 (0)