UNPKG

@blaze/atoms

Version:

Open Source UI Toolkit - Atoms

9 lines (8 loc) 326 B
import { newE2EPage } from '@stencil/core/testing'; export default (name) => (testName, html) => test(testName, async () => { const page = await newE2EPage(); await page.setContent(html); const element = await page.find(`blaze-${name}`); await page.waitForChanges(); expect(element.outerHTML).toMatchSnapshot(); });