Skip to content

Commit 1998bd4

Browse files
committed
ACP2E-2909: dynamic-rows.js:658 Uncaught TypeError: dataRecord.slice while editing bundle products
- Added the test coverage.
1 parent b70b878 commit 1998bd4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

dev/tests/js/jasmine/tests/app/code/Magento/Bundle/adminhtml/js/components/bundle-user-defined-checkbox.test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ define(['Magento_Bundle/js/components/bundle-user-defined-checkbox'], function (
3838
BundleUserDefinedCheckboxObj.onInputTypeChange('checkbox');
3939
expect(BundleUserDefinedCheckboxObj.reset).toHaveBeenCalled();
4040
expect(BundleUserDefinedCheckboxObj.visible()).toBe(false);
41+
42+
BundleUserDefinedCheckboxObj.onInputTypeChange('multi');
43+
expect(BundleUserDefinedCheckboxObj.reset.calls.count()).toBe(2);
44+
expect(BundleUserDefinedCheckboxObj.visible()).toBe(false);
4145
});
4246

4347
it('the element should be visible when the input type is not a checkbox or multi-line.', function () {

0 commit comments

Comments
 (0)