Skip to content

Commit

Permalink
dark theme ut
Browse files Browse the repository at this point in the history
  • Loading branch information
Axelcureno committed Oct 1, 2024
1 parent d8eb9e9 commit d1ba823
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
</merch-card>
</sp-theme>
<sp-theme theme="spectrum" color="dark" scale="medium" dir="rtl">
<merch-card strip-size="small" strip-background="./img/pixel.png" tabindex="0" variant="ccd-suggested" filters="" types="">
<merch-card strip-size="small" class="dark-theme" strip-background="./img/pixel.png" tabindex="0" variant="ccd-suggested" filters="" types="">
<sp-status-light size="l" variant="info" dir="ltr"></sp-status-light>
<merch-icon
slot="icons"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,13 @@ runTests(async () => {
it('should have strip with size small for the ccd-suggested wide card', async () => {
const ccdSliceWideCard = document.querySelector('merch-card[variant="ccd-suggested"][strip-size="small"]');
expect(ccdSliceWideCard.getAttribute('variant')).to.equal('ccd-suggested');
});
});

it('should have dark theme', async () => {
const ccdSliceDarkCard = document.querySelector('merch-card[variant="ccd-suggested"][strip-size="small"].dark-theme');
const theme = ccdSliceDarkCard.theme.color;
expect(theme.to.equal('dark'));
});
});

});

0 comments on commit d1ba823

Please sign in to comment.