We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 827b8a7 commit 1127146Copy full SHA for 1127146
dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Product/View.php
@@ -558,7 +558,12 @@ public function clickBaseImage()
558
*/
559
public function closeFullImage()
560
{
561
- $this->browser->find($this->fullImageClose, Locator::SELECTOR_CSS)->click();
+ $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();
567
}
568
569
/**
0 commit comments