Skip to content

Commit

Permalink
Added data test selectors for testing search page functionality.
Browse files Browse the repository at this point in the history
  • Loading branch information
chth0n1x committed Aug 25, 2023
1 parent 4fd0ca6 commit f79aeb9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div local-class='result-card-container'>
<div data-test-search-result-card local-class='result-card-container'>
<div local-class='primary-metadata-container'>
<div local-class='header'>
<div local-class='type-label'>
Expand All @@ -21,7 +21,7 @@
{{/if}}
</div>
<h4>
<a href={{@result.absoluteUrl}} target='_blank' rel='noopener noreferrer'> {{@result.displayTitle}} </a>
<a data-test-search-result-card-title href={{@result.absoluteUrl}} target='_blank' rel='noopener noreferrer'> {{@result.displayTitle}} </a>
{{#if @result.isWithdrawn}}
<span local-class='withdrawn-label'>{{t 'osf-components.search-result-card.withdrawn'}}</span>
{{/if}}
Expand Down

0 comments on commit f79aeb9

Please sign in to comment.