// import { newE2EPage } from '@stencil/core/testing'; // describe('ontario-table', () => { // it('renders', async () => { // const page = await newE2EPage(); // await page.setContent(` // // `); // const component = await page.find('ontario-table'); // const element = await page.find('ontario-table >>> div'); // expect(component).toHaveClass('hydrated'); // expect(element).toHaveClass('ontario-table-container'); // }); // it('should render the default table when no optional props are passed', async () => { // const page = await newE2EPage(); // await page.setContent(` // // `); // const element = await page.find('ontario-table >>> table'); // expect(element).not.toHaveClasses(['ontario-table--condensed', 'ontario-table--full-container-width']); // const twoColumnHeader = await page.find('ontario-table >>> .ontario-table-header--column-span-2'); // expect(twoColumnHeader).toBeNull(); // const numericTableCells = await page.find('ontario-table >>> .ontario-table-cell--numeric'); // expect(numericTableCells).toBeNull(); // const highlightClass = await page.find('ontario-table >>> .ontario-table-row--highlight'); // expect(highlightClass).toBeNull(); // const subtotalRowClass = await page.find('ontario-table >>> .ontario-table-row--subtotal'); // expect(subtotalRowClass).toBeNull(); // const footer = await page.find('ontario-table >>> tfoot'); // expect(footer).toBeNull(); // }); // it('should render the correct classes when multiple props are passed', async () => { // const page = await newE2EPage(); // await page.setContent(` // // // `); // const element = await page.find('ontario-table >>> table'); // expect(element).toHaveClasses([ // 'ontario-table--condensed', // 'ontario-table--full-container-width', // 'ontario-table--zebra-stripes-enabled', // ]); // const twoColumnHeader = await page.find('ontario-table >>> .ontario-table-header--column-span-2'); // expect(twoColumnHeader).not.toBeNull(); // const numericTableCells = await page.find('ontario-table >>> .ontario-table-cell--numeric'); // expect(numericTableCells).not.toBeNull(); // const highlightClass = await page.find('ontario-table >>> .ontario-table-row--highlight'); // expect(highlightClass).not.toBeNull(); // const subtotalRowClass = await page.find('ontario-table >>> .ontario-table-row--subtotal'); // expect(subtotalRowClass).not.toBeNull(); // const footer = await page.find('ontario-table >>> tfoot'); // expect(footer).not.toBeNull(); // }); // });