Remove GetEngineeringSpcReview Better error message EnforceCodeStyleInBuild NginxFileSystem Remove Reactors and Working Directory AppSettings Delete self contained Thunder Tests Back to .net8.0 api/v4/InfinityQS ApiExplorerSettings Wafer Counter
22 lines
903 B
JavaScript
22 lines
903 B
JavaScript
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
|