UNPKG

@salla.sa/twilight-components

Version:
37 lines (36 loc) 1.49 kB
/*! * Crafted with ❤ by Salla */ import { newE2EPage } from "@stencil/core/testing"; describe('salla-infinite-scroll-e2e', () => { // let page: E2EPage; // let element: E2EElement; // beforeEach(async () => { // page = await newE2EPage(); // await page.setContent(`<salla-infinite-scroll></salla-infinite-scroll>`); // element = await page.find('salla-infinite-scroll'); // }); it('should render the component', async () => { const page = await newE2EPage(); page.setContent(`<salla-infinite-scroll></salla-infinite-scroll>`); const el = await page.find("salla-infinite-scroll"); expect(el).not.toBeNull(); }); // it('should be able to render with default autoload prop', async () => { // expect(element.getAttribute('autoload')).toBe(false); // }) // it('should be able to render with default container prop', async () => { // expect(element.getAttribute('container')).toBe('salla-infinite-scroll'); // }) // it('should be able to render with default item prop', async () => { // expect(element.getAttribute('item')).toBe('salla-infinite-scroll > *'); // }) /** * @State() loadMore: string; @State() noMore: string; @State() failedToLoad: string; @JamalAlMatari and @AshrafReda please advise on this. These state attributes are not used in this component. So it's hard to write a test since their use is not clear. */ }); //# sourceMappingURL=salla-infinite-scroll.e2e.js.map