Remove with Text
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
This commit is contained in:
21
Server/wwwroot/package/dist/collection/components/badge/badge.e2e.js
vendored
Normal file
21
Server/wwwroot/package/dist/collection/components/badge/badge.e2e.js
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
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
|
Reference in New Issue
Block a user