Skip to content

Commit d7f20dd

Browse files
committed
Merge branch 'ACP2E-3198' of https://github.com/adobe-commerce-tier-4/magento2ce into PR-14-10-2024
2 parents ac58708 + 4392e3b commit d7f20dd

File tree

2 files changed

+148
-65
lines changed

2 files changed

+148
-65
lines changed

dev/tests/js/jasmine/tests/lib/web/magnify.test.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ define(['magnifier/magnify', 'mage/gallery/gallery', 'jquery'], function (Magnif
6363
mainDiv.setAttribute('data-gallery-role', 'gallery-placeholder');
6464

6565
img = document.createElement('img');
66-
img.alt = 'main product photo';
6766
img.id = 'main_product_photo';
6867
img.className = 'gallery-placeholder__image';
6968
img.src = 'dev/tests/acceptance/tests/_data/adobe-base.jpg';
@@ -85,6 +84,11 @@ define(['magnifier/magnify', 'mage/gallery/gallery', 'jquery'], function (Magnif
8584
imageEvents = $._data($('.fotorama__img--full')[0], 'events');
8685
expect(imageEvents).toBeInstanceOf(Object);
8786
expect(Object.getOwnPropertyNames(imageEvents)).toContain('touchend');
87+
expect(Object.getOwnPropertyNames(imageEvents)).toContain('pointerdown');
88+
expect(Object.getOwnPropertyNames(imageEvents)).toContain('pointermove');
89+
expect(Object.getOwnPropertyNames(imageEvents)).toContain('pointerup');
90+
expect(Object.getOwnPropertyNames(imageEvents)).toContain('pointercancel');
91+
expect(Object.getOwnPropertyNames(imageEvents)).toContain('pointerout');
8892
});
8993
});
9094
});

0 commit comments

Comments
 (0)