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,21 @@
import { newE2EPage } from "@stencil/core/testing";
describe('ifx-card-overline', () => {
it('should render', async () => {
const page = await newE2EPage();
await page.setContent('<ifx-card-overline></ifx-card-overline>');
const element = await page.find('ifx-card-overline');
expect(element).toHaveClass('hydrated');
});
it('should display slotted content', async () => {
const page = await newE2EPage();
await page.setContent('<ifx-card-overline>Card Overline</ifx-card-overline>');
const cardOverlineText = await page.evaluate(() => {
const cardOverline = document.querySelector('ifx-card-overline');
const slot = cardOverline.shadowRoot.querySelector('slot');
const nodes = slot.assignedNodes();
return nodes[0].textContent;
});
expect(cardOverlineText).toBe('Card Overline');
});
});
//# sourceMappingURL=card-overline.e2e.js.map