Static Site

This commit is contained in:
2024-06-14 16:51:30 -07:00
parent 3aed250488
commit 6737ddfb59
1706 changed files with 628 additions and 323 deletions

View File

@ -0,0 +1,20 @@
import { newE2EPage } from "@stencil/core/testing";
describe('NumberIndicator', () => {
it('should render', async () => {
const page = await newE2EPage();
await page.setContent('<ifx-number-indicator>42</ifx-number-indicator>');
const numberIndicator = await page.find('ifx-number-indicator');
expect(numberIndicator).toHaveClass('hydrated');
const container = await page.find('ifx-number-indicator >>> .numberIndicator__container');
expect(container).toHaveClass('numberIndicator__container');
const span = await page.find('ifx-number-indicator >>> .numberIndicator__container > span');
expect(await span.getProperty('textContent')).toBe('');
});
it('should apply inverted class', async () => {
const page = await newE2EPage();
await page.setContent('<ifx-number-indicator inverted>42</ifx-number-indicator>');
const container = await page.find('ifx-number-indicator >>> .numberIndicator__container');
expect(container).toHaveClass('inverted');
});
});
//# sourceMappingURL=number-indicator.e2e.js.map