Add count to search field placeholder
This commit is contained in:
parent
7b25b43ec6
commit
a1ea822ab7
|
@ -7,7 +7,7 @@
|
|||
<SearchBox
|
||||
data-test-recommendation-summaries-search
|
||||
@searchTerm={{mut this.searchTerm}}
|
||||
@placeholder="Search recommendations..." />
|
||||
@placeholder="Search {{this.model.length}} {{pluralize "recommendation" this.model.length}}..." />
|
||||
{{/if}}
|
||||
</div>
|
||||
<div class="toolbar-item is-right-aligned is-mobile-full-width">
|
||||
|
|
|
@ -383,6 +383,8 @@ module('Acceptance | optimize search and facets', function(hooks) {
|
|||
|
||||
await Optimize.visit();
|
||||
|
||||
assert.equal(Optimize.search.placeholder, `Search ${Optimize.recommendationSummaries.length} recommendations...`);
|
||||
|
||||
await Optimize.search.fillIn('ooo');
|
||||
|
||||
assert.equal(Optimize.recommendationSummaries.length, 2);
|
||||
|
|
|
@ -26,6 +26,7 @@ export default create({
|
|||
|
||||
search: {
|
||||
scope: '[data-test-recommendation-summaries-search] input',
|
||||
placeholder: attribute('placeholder'),
|
||||
},
|
||||
|
||||
card: recommendationCard,
|
||||
|
|
Loading…
Reference in New Issue