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 d9aa6f3 commit fad6db4Copy full SHA for fad6db4
dev/tests/js/jasmine/tests/app/code/Magento/Ui/base/js/grid/columns/expandable.test.js
@@ -69,5 +69,22 @@ define([
69
expect(expandable.getLabel).toHaveBeenCalled();
70
});
71
72
+
73
+ describe('getLabelsArray method', function () {
74
+ it('check if label array sort alphabetically case insensitive', function () {
75
+ record['shared_catalog'].push(1, 2 , 3);
76
+ expandable.options.push({
77
+ label: 'Default',
78
+ value: '1'
79
+ }, {
80
+ label: 'Label',
81
+ value: '2'
82
83
+ label: 'default',
84
+ value: '3'
85
+ });
86
+ expect(expandable.getLabelsArray(record)).toEqual(['Default', 'default', 'Label']);
87
88
89
90
0 commit comments