mirror of
https://github.com/tenrok/OverlayScrollbars.git
synced 2026-06-14 09:12:27 +03:00
18 lines
514 B
TypeScript
18 lines
514 B
TypeScript
import 'jest-playwright-preset';
|
|
import 'expect-playwright';
|
|
import { Environment } from 'environment';
|
|
import url from './.build/build.html';
|
|
|
|
describe('StructureLifecycle', () => {
|
|
beforeAll(async () => {
|
|
await page.goto(url);
|
|
});
|
|
|
|
test('page should be titled "Environment"', async () => {
|
|
// @ts-ignore
|
|
const a: Environment = await page.evaluate(() => window.structureLifecycle.envInstance);
|
|
console.log(a);
|
|
await expect(page.title()).resolves.toMatch('structureLifecycle');
|
|
});
|
|
});
|