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:
28
Server/wwwroot/package/dist/collection/components/pagination/pagination.e2e.js
vendored
Normal file
28
Server/wwwroot/package/dist/collection/components/pagination/pagination.e2e.js
vendored
Normal file
@ -0,0 +1,28 @@
|
||||
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
|
Reference in New Issue
Block a user