Skip to content

Commit

Permalink
Update help text (#1960)
Browse files Browse the repository at this point in the history
  • Loading branch information
futa-ikeda authored Aug 23, 2023
1 parent 9581eb4 commit 1c29ffe
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ as |layout|>
<h2 local-class='search-help-header' data-test-help-heading-3>
{{t 'search.search-help.header-3'}}
</h2>
<p data-test-help-body-3>{{t 'search.search-help.body-3'}}</p>
<p data-test-help-body-3>{{t 'search.search-help.body-3' htmlSafe=true}}</p>
<span local-class='pagination'>
<p local-class='enumeration' data-test-help-enumeration-3>{{t 'search.search-help.index-3'}}</p>
<span local-class='help-button-wrappers'>
Expand Down
4 changes: 2 additions & 2 deletions tests/acceptance/search/search-help-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ module('Integration | Component | Search help', hooks => {
assert.dom('[data-test-search-help-2]').exists();
// verify second popover content
assert.dom('[data-test-help-heading-2]').exists();
assert.dom('[data-test-help-heading-2]').hasText('OSF Smart Facets');
assert.dom('[data-test-help-heading-2]').hasText('Refine Your Search');
assert.dom('[data-test-help-body-2]').exists();
assert.dom('[data-test-help-body-2]').hasText(`Narrow the source, discipline, and more.
For example, find content supported by a specific funder or view only datasets.`);
Expand All @@ -53,7 +53,7 @@ module('Integration | Component | Search help', hooks => {
assert.dom('[data-test-help-heading-3]').hasText('Add Metadata');
assert.dom('[data-test-help-body-3]').exists();
assert.dom('[data-test-help-body-3]').hasText(`Remember to add metadata and resources
to your own work on OSF to make it more discoverable!`);
to your own work on OSF to make it more discoverable! Learn more in our help guides.`);
assert.dom('[data-test-help-enumeration-3]').exists();
assert.dom('[data-test-help-enumeration-3]').hasText('3 of 3');

Expand Down
4 changes: 2 additions & 2 deletions translations/en-us.yml
Original file line number Diff line number Diff line change
Expand Up @@ -217,11 +217,11 @@ search:
no-title: 'No title found'
search-help:
header-1: 'Improved OSF Search'
header-2: 'OSF Smart Facets'
header-2: 'Refine Your Search'
header-3: 'Add Metadata'
body-1: 'Enter any term in the search box and filter by specific object types. More information is available on our <a href="https://help.osf.io/article/588-getting-started-with-osf-search" target="_blank" rel="noopener noreferrer">help guides</a>.'
body-2: 'Narrow the source, discipline, and more. For example, find content supported by a specific funder or view only datasets.'
body-3: 'Remember to add metadata and resources to your own work on OSF to make it more discoverable!'
body-3: 'Remember to add metadata and resources to your own work on OSF to make it more discoverable! Learn more in our <a href="https://help.osf.io/article/572-metadata-to-increase-discoverability" target="_blank" rel="noopener noreferrer">help guides</a>.'
index-1: '1 of 3'
index-2: '2 of 3'
index-3: '3 of 3'
Expand Down

0 comments on commit 1c29ffe

Please sign in to comment.