Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit 02bfda2

Browse files
committed
MAGETWO-89675: Build Stabilization
Fix "Check returned value if selected array length more than 1" test
1 parent ebf22ff commit 02bfda2

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

dev/tests/js/jasmine/tests/app/code/Magento/Ui/base/js/form/ui-select.test.js

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,8 +451,21 @@ define([
451451
expect(obj.setCaption()).toEqual('Entity with ID: 1 doesn\'t exist');
452452
}
453453
);
454-
it('Check returned value if selected array length more then 1', function () {
454+
it('Check returned value if selected array length more than 1 and options exist', function () {
455455
obj.value(['one', 'two']);
456+
obj.multiple = true;
457+
obj.isDisplayMissingValuePlaceholder = false;
458+
459+
obj.cacheOptions.plain = [
460+
{
461+
label: 'one',
462+
value: 'one'
463+
},
464+
{
465+
label: 'two',
466+
value: 'one'
467+
}
468+
];
456469

457470
expect(obj.setCaption()).toEqual('2 ' + obj.selectedPlaceholders.lotPlaceholders);
458471
});

0 commit comments

Comments
 (0)