Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
Revert to ember-wormhole@0.3.6 (#108)
Browse files Browse the repository at this point in the history
closes TryGhost/Ghost#7073
- reverts `ember-wormhole` to 0.3.6
- adds working test that was broken under `ember-wormhole` 0.4.0
  • Loading branch information
kevinansfield authored and acburdine committed Jul 5, 2016
1 parent 05d71ed commit 078f85e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"ember-sortable": "1.8.1",
"ember-suave": "3.0.1",
"ember-watson": "0.8.2",
"ember-wormhole": "0.4.0",
"ember-wormhole": "0.3.6",
"emberx-file-input": "1.0.0",
"fs-extra": "0.30.0",
"glob": "^7.0.5",
Expand Down
15 changes: 15 additions & 0 deletions tests/integration/components/gh-search-input-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
} from 'ember-mocha';
import hbs from 'htmlbars-inline-precompile';
import run from 'ember-runloop';
import wait from 'ember-test-helpers/wait';

describeComponent(
'gh-search-input',
Expand All @@ -20,5 +21,19 @@ describeComponent(

expect(this.$('.ember-power-select-search input')).to.have.length(1);
});

it('opens the dropdown on text entry', function (done) {
this.render(hbs`{{gh-search-input}}`);

// enter text to trigger search
run(() => {
this.$('input[type="search"]').val('test').trigger('input');
});

wait().then(() => {
expect(this.$('.ember-basic-dropdown-content').length).to.equal(1);
done();
});
});
}
);

0 comments on commit 078f85e

Please sign in to comment.