Files
OverlayScrollbars/packages/overlayscrollbars/tests/playwright/environment/index.test.ts
T
2022-06-10 11:52:45 +02:00

16 lines
479 B
TypeScript

// @ts-ignore
import { playwrightRollup } from '@/playwright/rollup';
import { test } from '@playwright/test';
import { Environment } from 'environment';
playwrightRollup();
test.describe('Environment', () => {
test('page should be titled "Environment"', async ({ page }) => {
// @ts-ignore
const a: Environment = await page.evaluate(() => window.environment.envInstance);
console.log(a);
await expect(page.title()).resolves.toMatch('environment');
});
});