Mike Phares 127634f5ab Delete self contained Thunder Tests
Back to .net8.0
api/v4/InfinityQS
ApiExplorerSettings
Wafer Counter
Color Sorting
2024-03-13 13:15:56 -07:00

22 lines
815 B
JavaScript

import { newE2EPage } from "@stencil/core/testing";
describe('ifx-badge', () => {
it('should render', async () => {
const page = await newE2EPage();
await page.setContent('<ifx-badge></ifx-badge>');
const element = await page.find('ifx-badge');
expect(element).toHaveClass('hydrated');
});
it('should display slotted content', async () => {
const page = await newE2EPage();
await page.setContent('<ifx-badge>Test content</ifx-badge>');
const badgeContent = await page.evaluate(() => {
const badge = document.querySelector('ifx-badge');
const slot = badge.shadowRoot.querySelector('slot');
const nodes = slot.assignedNodes();
return nodes[0].textContent;
});
expect(badgeContent).toBe('Test content');
});
});
//# sourceMappingURL=badge.e2e.js.map