Back to .net8.0 api/v4/InfinityQS ApiExplorerSettings Wafer Counter Color Sorting
30 lines
1.3 KiB
JavaScript
30 lines
1.3 KiB
JavaScript
import { newE2EPage } from "@stencil/core/testing";
|
|
describe('ifx-basic-table', () => {
|
|
it('renders the table', async () => {
|
|
const page = await newE2EPage();
|
|
await page.setContent('<ifx-basic-table></ifx-basic-table>');
|
|
const element = await page.find('ifx-basic-table');
|
|
expect(element).toHaveClass('hydrated');
|
|
});
|
|
it('renders with correct height when set to auto', async () => {
|
|
const page = await newE2EPage();
|
|
await page.setContent('<ifx-basic-table table-height="auto"></ifx-basic-table>');
|
|
const wrapperElement = await page.find('ifx-basic-table');
|
|
const autoHeight = await wrapperElement.getProperty('tableHeight');
|
|
expect(autoHeight).toBe('auto');
|
|
});
|
|
// Example for checking parsed columns and rows
|
|
it('parses cols and rows correctly', async () => {
|
|
const page = await newE2EPage();
|
|
await page.setContent('<ifx-basic-table cols=\'[...]\' rows=\'[...]\'>'); // Replace [...] with your mock data
|
|
const component = await page.find('ifx-basic-table');
|
|
const columnDefs = await component.getProperty('columnDefs');
|
|
const rowData = await component.getProperty('rowData');
|
|
expect(columnDefs).toBeDefined();
|
|
expect(rowData).toBeDefined();
|
|
expect(Array.isArray(columnDefs)).toBeTruthy();
|
|
expect(Array.isArray(rowData)).toBeTruthy();
|
|
});
|
|
});
|
|
//# sourceMappingURL=table.e2e.js.map
|