UNPKG

@salla.sa/twilight-components

Version:
23 lines (22 loc) 924 B
/*! * Crafted with ❤ by Salla */ import { newE2EPage } from "@stencil/core/testing"; describe('salla-conditional-fields-e2e', () => { it('should render the component', async () => { const page = await newE2EPage(); await page.setContent('<salla-conditional-fields></salla-conditional-fields>'); const el = await page.find('salla-conditional-fields'); expect(el).not.toBeNull(); }); it("should emit an event", async () => { const page = await newE2EPage(); await page.setContent('<salla-conditional-fields style="height: 100px;"></salla-conditional-fields>'); const component = await page.find("salla-conditional-fields"); component.setAttribute('style', "height: 10px;"); await page.waitForChanges(); const changeEvent = await page.spyOnEvent("change"); expect(changeEvent).toHaveReceivedEventTimes(1); }); }); //# sourceMappingURL=salla-conditional-fields.e2e.js.map