18 lines
483 B
TypeScript
18 lines
483 B
TypeScript
import { newE2EPage } from '@stencil/core/testing';
|
|
|
|
describe('app-root', () => {
|
|
it('renders', async () => {
|
|
const page = await newE2EPage({ url: '/' });
|
|
|
|
const element = await page.find('app-root');
|
|
expect(element).toHaveClass('hydrated');
|
|
});
|
|
|
|
it('renders the title', async () => {
|
|
const page = await newE2EPage({ url: '/' });
|
|
|
|
const element = await page.find('app-root >>> h1');
|
|
expect(element.textContent).toEqual('Stencil App Starter');
|
|
});
|
|
});
|