mirror of
https://github.com/tenrok/OverlayScrollbars.git
synced 2026-06-12 05:22:26 +03:00
29 lines
792 B
TypeScript
29 lines
792 B
TypeScript
// @ts-ignore
|
|
import { playwrightRollup, expectSuccess } from '@/playwright/rollup';
|
|
import { test } from '@playwright/test';
|
|
|
|
playwrightRollup();
|
|
|
|
test.describe('TrinsicObserver', () => {
|
|
test('with IntersectionObserver', async ({ page }) => {
|
|
await page.click('#start');
|
|
await expectSuccess(page);
|
|
});
|
|
|
|
test('with ResizeObserver', async ({ page }) => {
|
|
await page.click('#ioPolyfill');
|
|
await page.waitForTimeout(500);
|
|
await page.click('#start');
|
|
await expectSuccess(page);
|
|
});
|
|
|
|
test('with ResizeObserver polyfill', async ({ page }) => {
|
|
await page.click('#ioPolyfill');
|
|
await page.waitForTimeout(500);
|
|
await page.click('#roPolyfill');
|
|
await page.waitForTimeout(500);
|
|
await page.click('#start');
|
|
await expectSuccess(page);
|
|
});
|
|
});
|