Files
OverlayScrollbars/packages/overlayscrollbars/tests/puppeteer/StructureLifecycle/index.test.ts
T

16 lines
432 B
TypeScript

import { Environment } from 'environment';
import url from './.build/build.html';
describe('StructureLifecycle', () => {
beforeAll(async () => {
await page.goto(url);
});
it('should be titled "Environment"', async () => {
// @ts-ignore
const a: Environment = await page.evaluate(() => window.Environment.envInstance);
console.log(a);
await expect(page.title()).resolves.toMatch('Environment');
});
});