mirror of
https://github.com/tenrok/OverlayScrollbars.git
synced 2026-06-24 00:20:36 +03:00
20 lines
584 B
TypeScript
20 lines
584 B
TypeScript
import { Environment } from 'environment';
|
|
import url from './.build/build.html';
|
|
|
|
describe('Environment', () => {
|
|
beforeAll(async () => {
|
|
await page.goto(url);
|
|
});
|
|
|
|
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');
|
|
|
|
const a: Environment = await page.evaluate(() => window.envInstance);
|
|
console.log(a);
|
|
await expect(page.title()).resolves.toMatch('Environment');
|
|
});
|
|
});
|