Skip to content

Commit

Permalink
add dropdownParent=body test
Browse files Browse the repository at this point in the history
  • Loading branch information
oyejorge committed Nov 14, 2020
1 parent a92239e commit 0856ce8
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/tests/interaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,19 @@
});
});

it_n('should keep dropdown open when clicking on dropdown if dropdownParent=body', function(done) {

var test = setup_test('AB_Multi',{dropdownParent:'body'});

click(test.instance.control, function() {
click($('[data-value=a]', test.instance.dropdown_content), function() {
expect(test.instance.isOpen).to.be.equal(true);
expect(test.instance.isFocused).to.be.equal(true);
done();
});
});
});

it_n('should close dropdown after selection made if closeAfterSelect: true', function(done) {

var test = setup_test('AB_Multi',{closeAfterSelect: true});
Expand Down

0 comments on commit 0856ce8

Please sign in to comment.