diff --git a/tests/integration/components/power-select/general-behaviour-test.js b/tests/integration/components/power-select/general-behaviour-test.js
index 56c84cb92..a6cd81b7c 100644
--- a/tests/integration/components/power-select/general-behaviour-test.js
+++ b/tests/integration/components/power-select/general-behaviour-test.js
@@ -262,7 +262,6 @@ test('If the user passes `closeOnSelect=false` the dropdown remains visible afte
assert.equal($('.ember-power-select-dropdown').length, 1, 'Dropdown is rendered');
});
-
test('If the content of the options is refreshed (starting with empty array proxy) the available options should also refresh', function(assert) {
let done = assert.async();
assert.expect(2);
diff --git a/tests/integration/components/power-select/multiple-test.js b/tests/integration/components/power-select/multiple-test.js
index 0e6e2fb49..a42389198 100644
--- a/tests/integration/components/power-select/multiple-test.js
+++ b/tests/integration/components/power-select/multiple-test.js
@@ -270,6 +270,23 @@ test('Pressing ENTER when the select is closed opens and nothing is written on t
assert.equal($('.ember-power-select-dropdown').length, 1, 'Dropdown is rendered');
});
+test('Pressing ENTER on a multiple select with `searchEnabled=false` when it is closed opens it', function(assert) {
+ assert.expect(2);
+
+ this.numbers = numbers;
+ this.render(hbs`
+ {{#power-select-multiple searchEnabled=false options=numbers selected=foo onchange=(action (mut foo)) as |option|}}
+ {{option}}
+ {{/power-select-multiple}}
+ `);
+
+ let trigger = this.$('.ember-power-select-trigger')[0];
+ trigger.focus();
+ assert.equal($('.ember-power-select-dropdown').length, 0, 'Dropdown is not rendered');
+ triggerKeydown(trigger, 13);
+ assert.equal($('.ember-power-select-dropdown').length, 1, 'Dropdown is rendered');
+});
+
test('Pressing ENTER over a highlighted element selects it', function(assert) {
assert.expect(2);
@@ -290,6 +307,48 @@ test('Pressing ENTER over a highlighted element selects it', function(assert) {
assert.ok(/two/.test($('.ember-power-select-trigger').text().trim()), 'The element was selected');
});
+test('Pressing ENTER over a highlighted element on a multiple select with `searchEnabled=false` selects it', function(assert) {
+ assert.expect(2);
+
+ this.numbers = numbers;
+ this.render(hbs`
+ {{#power-select-multiple searchEnabled=false options=numbers selected=foo onchange=(action (mut foo)) as |option|}}
+ {{option}}
+ {{/power-select-multiple}}
+ `);
+
+ clickTrigger();
+ assert.equal($('.ember-power-select-dropdown').length, 1, 'Dropdown is rendered');
+ let trigger = this.$('.ember-power-select-trigger')[0];
+ triggerKeydown(trigger, 40);
+ triggerKeydown(trigger, 13);
+ assert.ok(/two/.test($('.ember-power-select-trigger').text().trim()), 'The element was selected');
+});
+
+
+test('Pressing ENTER over a highlighted element on a select with `searchEnabled=false` selects it', function(assert) {
+ assert.expect(4);
+
+ this.numbers = numbers;
+ this.change = (selected) => {
+ assert.deepEqual(selected, ['two']);
+ this.set('foo', selected);
+ };
+ this.render(hbs`
+ {{#power-select-multiple searchEnabled=false options=numbers selected=foo onchange=change as |option|}}
+ {{option}}
+ {{/power-select-multiple}}
+ `);
+
+ clickTrigger();
+ assert.equal(this.$('.ember-power-select-multiple-option').length, 0, 'There is no elements selected');
+ let trigger = this.$('.ember-power-select-trigger')[0];
+ triggerKeydown(trigger, 40);
+ triggerKeydown(trigger, 13);
+ assert.equal(this.$('.ember-power-select-multiple-option').length, 1, 'There is one element selected');
+ assert.ok(/two/.test($('.ember-power-select-trigger').text().trim()), 'The element is "two"');
+});
+
test('Pressing ENTER over a highlighted element what is already selected closes the select without doing anything and focuses the trigger', function(assert) {
assert.expect(3);
@@ -601,4 +660,4 @@ test('The trigger of multiple selects have a special class to distinguish them f
assert.ok(this.$('.ember-power-select-trigger').hasClass('ember-power-select-multiple-trigger'), 'The trigger has the default class');
assert.ok(this.$('.ember-power-select-trigger').hasClass('foobar-trigger'), 'The trigger has the given class');
-});
\ No newline at end of file
+});
diff --git a/tests/integration/components/power-select/public-actions-test.js b/tests/integration/components/power-select/public-actions-test.js
index d64fc8b9b..ae6c28d4d 100644
--- a/tests/integration/components/power-select/public-actions-test.js
+++ b/tests/integration/components/power-select/public-actions-test.js
@@ -115,7 +115,7 @@ test('The onkeydown of multiple selects action receives the public API and the k
this.numbers = numbers;
this.onKeyDown = (select, e) => {
assert.equal(typeof select.isOpen, 'boolean', 'select.isOpen is a boolean');
- assert.equal(typeof select.highlighted, 'undefined', 'select.highlighted is still undefined');
+ assert.equal(typeof select.highlighted, 'string', 'select.highlighted is a string');
assert.equal(typeof select.actions.open, 'function', 'select.actions.open is a function');
assert.equal(typeof select.actions.close, 'function', 'select.actions.close is a function');
assert.equal(typeof select.actions.search, 'function', 'select.actions.search is a function');