Skip to content

Commit 2afafac

Browse files
Merge pull request #571 from magento-falcons/MAGETWO-60145
Fixed issue: - MAGETWO-60145: Mainline Build Failure for Sample Data Tests
2 parents 2347bc6 + c9ff9cb commit 2afafac

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

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

+13-6
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)