Last active
April 11, 2019 13:02
-
-
Save StefanNieuwenhuis/aa9f2d18e317290f768e67aae5cd5744 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { newE2EPage } from '@stencil/core/testing'; | |
describe('my-component', () => { | |
let page, component, element; | |
beforeEach(async () => { | |
page = await newE2EPage(); | |
await page.setContent('<my-component></my-component>'); | |
component = await page.find('my-component'); | |
element = await page.find('my-component >>> div'); | |
}); | |
it('renders', async () => { | |
expect(component).toHaveClass('hydrated'); | |
}); | |
it('renders a div, decorated with a class, called overlay', async () => { | |
expect(element).toHaveClass('overlay'); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment