Skip to content

Commit

Permalink
test: fix failing specs due to missing CSS Custom Prop
Browse files Browse the repository at this point in the history
  • Loading branch information
ju-Skinner committed Aug 28, 2024
1 parent a6c34ff commit 988094a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/components/pds-icon/test/pds-icon.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ describe('pds-icon', () => {
html: '<pds-icon></pds-icon>',
});
expect(root).toEqualHtml(`
<pds-icon alt="" role="img" size="regular" style="--dimension-icon-height: 16px; --dimension-icon-width: 16px;">
<pds-icon alt="" role="img" size="regular" style="--dimension-icon-height: 16px; --dimension-icon-width: 16px; --color-icon-fill: currentColor;">
<mock:shadow-root>
<div class="icon-inner"></div>
</mock:shadow-root>
Expand All @@ -22,7 +22,7 @@ describe('pds-icon', () => {
html: '<pds-icon size="small"></pds-icon>',
});
expect(root).toEqualHtml(`
<pds-icon alt="" role="img" size="small" style="--dimension-icon-height: 12px; --dimension-icon-width: 12px;">
<pds-icon alt="" role="img" size="small" style="--dimension-icon-height: 12px; --dimension-icon-width: 12px; --color-icon-fill: currentColor;">
<mock:shadow-root>
<div class="icon-inner"></div>
</mock:shadow-root>
Expand All @@ -36,7 +36,7 @@ describe('pds-icon', () => {
html: '<pds-icon size="32px"></pds-icon>',
});
expect(root).toEqualHtml(`
<pds-icon alt="" role="img" size="32px" style="--dimension-icon-height: 32px; --dimension-icon-width: 32px;">
<pds-icon alt="" role="img" size="32px" style="--dimension-icon-height: 32px; --dimension-icon-width: 32px; --color-icon-fill: currentColor;">
<mock:shadow-root>
<div class="icon-inner"></div>
</mock:shadow-root>
Expand All @@ -50,7 +50,7 @@ describe('pds-icon', () => {
html: '<pds-icon name="archive"></pds-icon>',
});
expect(root).toEqualHtml(`
<pds-icon alt="" aria-label="archive" name="archive" role="img" size="regular" style="--dimension-icon-height: 16px; --dimension-icon-width: 16px;">
<pds-icon alt="" aria-label="archive" name="archive" role="img" size="regular" style="--dimension-icon-height: 16px; --dimension-icon-width: 16px; --color-icon-fill: currentColor;">
<mock:shadow-root>
<div class="icon-inner"></div>
</mock:shadow-root>
Expand Down Expand Up @@ -79,7 +79,7 @@ describe('pds-icon', () => {
});

expect(root).toEqualHtml(`
<pds-icon alt="" name="star" role="img" aria-label="custom label" size="regular" style="--dimension-icon-height: 16px; --dimension-icon-width: 16px;">
<pds-icon alt="" name="star" role="img" aria-label="custom label" size="regular" style="--dimension-icon-height: 16px; --dimension-icon-width: 16px; --color-icon-fill: currentColor;">
<mock:shadow-root>
<div class="icon-inner"></div>
</mock:shadow-root>
Expand All @@ -96,7 +96,7 @@ describe('pds-icon', () => {
const icon = page.root;

expect(icon).toEqualHtml(`
<pds-icon alt="" name="youtube" role="img" aria-label="custom label" size="regular" style="--dimension-icon-height: 16px; --dimension-icon-width: 16px;">
<pds-icon alt="" name="youtube" role="img" aria-label="custom label" size="regular" style="--dimension-icon-height: 16px; --dimension-icon-width: 16px; --color-icon-fill: currentColor;">
<mock:shadow-root>
<div class="icon-inner"></div>
</mock:shadow-root>
Expand All @@ -109,7 +109,7 @@ describe('pds-icon', () => {
await page.waitForChanges();

expect(icon).toEqualHtml(`
<pds-icon alt="" name="trash" role="img" aria-label="custom label" size="regular" style="--dimension-icon-height: 16px; --dimension-icon-width: 16px;">
<pds-icon alt="" name="trash" role="img" aria-label="custom label" size="regular" style="--dimension-icon-height: 16px; --dimension-icon-width: 16px; --color-icon-fill: currentColor;">
<mock:shadow-root>
<div class="icon-inner"></div>
</mock:shadow-root>
Expand Down

0 comments on commit 988094a

Please sign in to comment.