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:
24
Server/wwwroot/package/dist/collection/components/select/single-select/select.e2e.js
vendored
Normal file
24
Server/wwwroot/package/dist/collection/components/select/single-select/select.e2e.js
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
import { newE2EPage } from "@stencil/core/testing";
|
||||
describe('ifx-select', () => {
|
||||
it('should render without errors', async () => {
|
||||
const page = await newE2EPage();
|
||||
await page.setContent('<ifx-select></ifx-select>');
|
||||
const element = await page.find('ifx-select');
|
||||
expect(element).toHaveClass('hydrated');
|
||||
});
|
||||
it('should accept properties and reflect them', async () => {
|
||||
const page = await newE2EPage();
|
||||
await page.setContent('<ifx-select ifx-label="Test label"></ifx-select>');
|
||||
const component = await page.find('ifx-select');
|
||||
const label = await component.getProperty('ifxLabel');
|
||||
expect(label).toBe('Test label');
|
||||
});
|
||||
it('should display error message when ifxError is true', async () => {
|
||||
const page = await newE2EPage();
|
||||
await page.setContent('<ifx-select ifx-error="true" ifx-error-message="This is an error"></ifx-select>');
|
||||
const component = await page.find('ifx-select');
|
||||
const errorMessage = await component.getProperty('ifxErrorMessage');
|
||||
expect(errorMessage).toBe('This is an error');
|
||||
});
|
||||
});
|
||||
//# sourceMappingURL=select.e2e.js.map
|
Reference in New Issue
Block a user