Skip to content
Snippets Groups Projects
Commit c935e781 authored by Oleh Posyniak's avatar Oleh Posyniak
Browse files

MAGETWO-57119: Sample Data Tests fails randomly

parent 8744435b
Branches
No related merge requests found
......@@ -567,12 +567,19 @@ class View extends AbstractConfigureBlock
*/
public function closeFullImage()
{
$element = $this->browser->find($this->fullImageClose, Locator::SELECTOR_CSS);
if (!$element->isVisible()) {
$element->hover();
$this->waitForElementVisible($this->fullImageClose);
}
$element->click();
$this->_rootElement->waitUntil(
function () {
$this->browser->find($this->fullImage)->hover();
if ($this->browser->find($this->fullImageClose)->isVisible()) {
$this->browser->find($this->fullImageClose)->click();
return true;
}
return null;
}
);
}
/**
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment