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:
23
Server/wwwroot/package/dist/collection/components/link/link.e2e.js
vendored
Normal file
23
Server/wwwroot/package/dist/collection/components/link/link.e2e.js
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
import { newE2EPage } from "@stencil/core/testing";
|
||||
describe('Link', () => {
|
||||
it('should render', async () => {
|
||||
const page = await newE2EPage();
|
||||
await page.setContent('<ifx-link href="https://example.com">Example Link</ifx-link>');
|
||||
const linkElement = await page.find('ifx-link');
|
||||
const anchorElement = await page.find('ifx-link >>> a');
|
||||
expect(linkElement).toHaveClass('hydrated');
|
||||
expect(anchorElement).toHaveClass('link');
|
||||
expect(anchorElement.getAttribute('href')).toBe('https://example.com');
|
||||
expect(anchorElement.getAttribute('target')).toBe('_self');
|
||||
});
|
||||
it('should have additional class names based on props', async () => {
|
||||
const page = await newE2EPage();
|
||||
await page.setContent('<ifx-link href="https://example.com" color="primary" bold="false" underline="false">Example Link</ifx-link>');
|
||||
const linkElement = await page.find('ifx-link');
|
||||
const anchorElement = await page.find('ifx-link >>> a');
|
||||
expect(linkElement).toHaveClass('hydrated');
|
||||
expect(anchorElement).toHaveClass('primary');
|
||||
expect(anchorElement).not.toHaveClass('underline');
|
||||
});
|
||||
});
|
||||
//# sourceMappingURL=link.e2e.js.map
|
Reference in New Issue
Block a user