Back to .net8.0 api/v4/InfinityQS ApiExplorerSettings Wafer Counter Color Sorting
27 lines
1.1 KiB
JavaScript
27 lines
1.1 KiB
JavaScript
import { newE2EPage } from "@stencil/core/testing";
|
|
describe('ifx-modal', () => {
|
|
it('opens and closes the modal', async () => {
|
|
const page = await newE2EPage();
|
|
await page.setContent('<ifx-modal></ifx-modal>');
|
|
const modal = await page.find('ifx-modal');
|
|
let modalContainer = await page.find('ifx-modal >>> .modal-container');
|
|
await page.waitForChanges();
|
|
expect(modalContainer).not.toHaveClass('open');
|
|
// Open the modal
|
|
await modal.setProperty('opened', true);
|
|
await page.waitForChanges();
|
|
expect(await modal.getProperty('opened')).toBe(true);
|
|
let modalContainerOpen = await page.find('ifx-modal >>> .modal-container');
|
|
await page.waitForChanges();
|
|
expect(modalContainerOpen).toHaveClass('open');
|
|
// Close the modal
|
|
await modal.setProperty('opened', false);
|
|
await page.waitForChanges();
|
|
expect(await modal.getProperty('opened')).toBe(false);
|
|
let modalContainerClosed = await page.find('ifx-modal >>> .modal-container');
|
|
await page.waitForChanges();
|
|
expect(modalContainerClosed).not.toHaveClass('open');
|
|
});
|
|
});
|
|
//# sourceMappingURL=modal.e2e.js.map
|