Mike Phares 127634f5ab Delete self contained Thunder Tests
Back to .net8.0
api/v4/InfinityQS
ApiExplorerSettings
Wafer Counter
Color Sorting
2024-03-13 13:15:56 -07:00

29 lines
1.1 KiB
JavaScript

import { newE2EPage } from "@stencil/core/testing";
describe('ifx-pagination', () => {
it('should render', async () => {
const page = await newE2EPage();
await page.setContent('<ifx-pagination></ifx-pagination>');
const element = await page.find('ifx-pagination');
expect(element).toHaveClass('hydrated');
});
it('should display the correct number of page numbers', async () => {
const page = await newE2EPage();
await page.setContent('<ifx-pagination></ifx-pagination>');
});
it('should change the page on click', async () => {
const page = await newE2EPage();
await page.setContent('<ifx-pagination></ifx-pagination>');
await page.waitForChanges();
});
it('should emit the ifxPageChange event on page change', async () => {
const page = await newE2EPage();
await page.setContent('<ifx-pagination></ifx-pagination>');
const element = await page.find('ifx-pagination');
const pageChangeSpy = await element.spyOnEvent('ifxPageChange');
await page.waitForChanges();
expect(pageChangeSpy).toHaveReceivedEventTimes(0);
});
// Add more test cases as needed
});
//# sourceMappingURL=pagination.e2e.js.map