Files
OverlayScrollbars/packages/overlayscrollbars/__tests__/puppeteer/Environment/index.test.ts
T
2020-09-06 13:31:59 +02:00

16 lines
484 B
TypeScript

import html from './__build__/build.html';
describe('Environment', () => {
beforeAll(async () => {
await page.setContent(html, { waitUntil: 'domcontentloaded' });
});
it('should be titled "Environment"', async () => {
await expect(page).toMatchElement('#a');
await expect(page).toMatchElement('#b');
await expect(page).toMatchElement('#c');
await expect(page).toMatchElement('#d');
await expect(page.title()).resolves.toMatch('Environment');
});
});