mirror of
https://github.com/tenrok/OverlayScrollbars.git
synced 2026-05-17 04:39:40 +03:00
18 lines
493 B
TypeScript
18 lines
493 B
TypeScript
import 'jest-playwright-preset';
|
|
import 'expect-playwright';
|
|
import { Environment } from 'environment';
|
|
import url from './.build/build.html';
|
|
|
|
describe('Environment', () => {
|
|
beforeAll(async () => {
|
|
await page.goto(url);
|
|
});
|
|
|
|
test('page 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');
|
|
});
|
|
});
|