Skip to content

Commit d35c89c

Browse files
committed
ACP2E-1764: Configurable product price is not changed when option is selected
- Fixed the CR comments.
1 parent 25a1937 commit d35c89c

File tree

1 file changed

+4
-7
lines changed
  • dev/tests/js/jasmine/tests/app/code/Magento/ConfigurableProduct/view/frontend/js

1 file changed

+4
-7
lines changed

dev/tests/js/jasmine/tests/app/code/Magento/ConfigurableProduct/view/frontend/js/configurable.test.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -143,22 +143,19 @@ define([
143143
expect($.fn.trigger).toHaveBeenCalledWith('updatePrice', {});
144144
});
145145

146-
it('check that configure element method', function () {
147-
expect($.mage.configurable).toBeDefined();
148-
selectElement.value = 14;
146+
it('check if the _configureElement method is enabling configurable option or not', function () {
147+
selectElement.val(14);
149148
widget._configureElement(selectElement);
150149
expect(widget).toBeTruthy();
151150
});
152151

153-
it('check that clear select method', function () {
154-
expect($.mage.configurable).toBeDefined();
152+
it('check if the _clearSelect method is clearing the option selections or not', function () {
155153
selectElement.empty();
156154
widget._clearSelect(selectElement);
157155
expect(widget).toBeTruthy();
158156
});
159157

160-
it('check that get simple product id method', function () {
161-
expect($.mage.configurable).toBeDefined();
158+
it('check if the _getSimpleProductId method is returning simple product id or not', function () {
162159
widget._getSimpleProductId(selectElement);
163160
expect(widget).toBeTruthy();
164161
});

0 commit comments

Comments
 (0)