Skip to content

Commit

Permalink
test(Alert): [BLA-SCOUT] Fix failing unit test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
vishwapriya committed Jan 17, 2025
1 parent 6332c1b commit 42cf5fd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages/core-components/src/components/alert/alert.e2e.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ describe('B2B-Alert', () => {
it('should not render text in a small alert', async () => {
const page = await newE2EPage();

await page.setContent(`<b2b-alert opened>test</b2b-alert>`);
await page.setContent(`<b2b-alert opened size="small">test</b2b-alert>`);

const element = await page.find('b2b-alert >>> p');

Expand Down Expand Up @@ -85,7 +85,7 @@ describe('B2B-Alert', () => {

it('should not render a close button in a small alert', async () => {
const page = await newE2EPage();
await page.setContent(`<b2b-alert opened>test</b2b-alert>`);
await page.setContent(`<b2b-alert opened size="small">test</b2b-alert>`);

const element = await page.find('b2b-alert >>> div.b2b-alert__close-icon');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ 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 b2b-anchor-hover--default" target="_self">
<a href="https://www.otto.de" class="b2b-anchor b2b-anchor--inherit b2b-anchor-hover--default b2b-anchor--underline-text" target="_self">
<slot></slot>
</a>
</mock:shadow-root>
Expand All @@ -36,7 +36,7 @@ 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 b2b-anchor-hover--default" target="_self">
<a href="https://www.otto.de" class="b2b-anchor b2b-anchor--100 b2b-anchor-hover--default b2b-anchor--underline-text" target="_self">
<slot></slot>
</a>
</mock:shadow-root>
Expand All @@ -57,7 +57,7 @@ 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 b2b-anchor-hover--default" target="_self" download="This is a test download">
<a href="https://www.otto.de" class="b2b-anchor b2b-anchor--inherit b2b-anchor-hover--default b2b-anchor--underline-text" target="_self" download="This is a test download">
<slot></slot>
</a>
</mock:shadow-root>
Expand All @@ -78,7 +78,7 @@ 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 b2b-anchor-hover--default" target="_parent">
<a href="https://www.otto.de" class="b2b-anchor b2b-anchor--inherit b2b-anchor-hover--default b2b-anchor--underline-text" target="_parent">
<slot></slot>
</a>
</mock:shadow-root>
Expand Down

0 comments on commit 42cf5fd

Please sign in to comment.