Skip to content

Commit

Permalink
test(Headline): [BLA-1055] Fix failing test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
vishwapriya committed Jan 17, 2025
1 parent b79471c commit 4c798a8
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions packages/core-components/src/components/anchor/anchor.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ it('should render the anchor component with default values', async () => {
expect(page.root).toEqualHtml(`
<b2b-anchor>
<mock:shadow-root>
<a href="https://www.otto.de" class="b2b-anchor b2b-anchor--inherit" target="_self">
<a href="https://www.otto.de" class="b2b-anchor b2b-anchor--inherit b2b-anchor-hover--default" target="_self">
<slot></slot>
</a>
</mock:shadow-root>
</mock:shadow-root>
This is a test anchor.
</b2b-anchor>
`);
Expand All @@ -36,10 +36,10 @@ it('should change the font size of the anchor component if specified', async ()
expect(page.root).toEqualHtml(`
<b2b-anchor>
<mock:shadow-root>
<a href="https://www.otto.de" class="b2b-anchor b2b-anchor--100" target="_self">
<a href="https://www.otto.de" class="b2b-anchor b2b-anchor--100 b2b-anchor-hover--default" target="_self">
<slot></slot>
</a>
</mock:shadow-root>
</mock:shadow-root>
This is a test anchor.
</b2b-anchor>
`);
Expand All @@ -57,10 +57,10 @@ it('should change the download string if specified', async () => {
expect(page.root).toEqualHtml(`
<b2b-anchor>
<mock:shadow-root>
<a href="https://www.otto.de" class="b2b-anchor b2b-anchor--inherit" target="_self" download="This is a test download">
<a href="https://www.otto.de" class="b2b-anchor b2b-anchor--inherit b2b-anchor-hover--default" target="_self" download="This is a test download">
<slot></slot>
</a>
</mock:shadow-root>
</mock:shadow-root>
This is a test anchor.
</b2b-anchor>
`);
Expand All @@ -78,10 +78,10 @@ it('should change the target property if specified', async () => {
expect(page.root).toEqualHtml(`
<b2b-anchor>
<mock:shadow-root>
<a href="https://www.otto.de" class="b2b-anchor b2b-anchor--inherit" target="_parent">
<a href="https://www.otto.de" class="b2b-anchor b2b-anchor--inherit b2b-anchor-hover--default" target="_parent">
<slot></slot>
</a>
</mock:shadow-root>
</mock:shadow-root>
This is a test anchor.
</b2b-anchor>
`);
Expand Down

0 comments on commit 4c798a8

Please sign in to comment.