Skip to content

Commit

Permalink
updated tests for CTA to avoid Percy failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
didoo committed May 25, 2022
1 parent ddfc49a commit a3ad600
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,8 @@
@icon="plus"
@text={{capitalize state}}
@size={{size}}
class="is-{{state}}"
@route="components.link-to.cta"
mock-state-value={{state}}
/>
</div>
{{/each}}
Expand All @@ -292,8 +292,8 @@
@icon="plus"
@text={{capitalize state}}
@isFullWidth={{true}}
class="is-{{state}}"
@route="components.link-to.cta"
mock-state-value={{state}}
/>
</div>
{{/each}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -256,15 +256,21 @@
<div>
<span class="dummy-text-small">{{capitalize size}}/{{state}}:</span>
<br />
<Hds::Link::Cta @icon="plus" @text={{capitalize state}} @size={{size}} class="is-{{state}}" href="#" />
<Hds::Link::Cta @icon="plus" @text={{capitalize state}} @size={{size}} href="#" mock-state-value={{state}} />
</div>
{{/each}}
{{/each}}
{{#each @model.STATES as |state|}}
<div>
<span class="dummy-text-small">Full width/{{state}}:</span>
<br />
<Hds::Link::Cta @icon="plus" @text={{capitalize state}} @isFullWidth={{true}} class="is-{{state}}" href="#" />
<Hds::Link::Cta
@icon="plus"
@text={{capitalize state}}
@isFullWidth={{true}}
href="#"
mock-state-value={{state}}
/>
</div>
{{/each}}
</div>
Expand Down

0 comments on commit a3ad600

Please sign in to comment.