File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Product Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -189,6 +189,11 @@ class View extends AbstractConfigureBlock
189
189
*/
190
190
protected $ baseImage = '[data-gallery-role="gallery"] img.fotorama__img.fotorama__img ' ;
191
191
192
+ /**
193
+ * @var string
194
+ */
195
+ protected $ galleryLoader = '.fotorama__spinner--show ' ;
196
+
192
197
/**
193
198
* Video Container selector
194
199
*
@@ -499,6 +504,7 @@ public function waitLoader()
499
504
*/
500
505
public function isGalleryVisible ()
501
506
{
507
+ $ this ->waitForElementNotVisible ($ this ->galleryLoader );
502
508
return $ this ->_rootElement ->find ($ this ->mediaGallery )->isVisible ();
503
509
}
504
510
@@ -509,6 +515,7 @@ public function isGalleryVisible()
509
515
*/
510
516
public function isFullImageVisible ()
511
517
{
518
+ $ this ->waitForElementNotVisible ($ this ->galleryLoader );
512
519
return $ this ->browser ->find ($ this ->fullImage )->isVisible ();
513
520
}
514
521
You can’t perform that action at this time.
0 commit comments