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