mirror of
https://github.com/tenrok/OverlayScrollbars.git
synced 2026-06-19 18:50:37 +03:00
28 lines
785 B
TypeScript
28 lines
785 B
TypeScript
import { playwrightRollup, expectSuccess } from '@~local/playwright-tooling';
|
|
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);
|
|
});
|
|
});
|