mirror of
https://github.com/tenrok/OverlayScrollbars.git
synced 2026-06-15 10:32:27 +03:00
28 lines
784 B
TypeScript
28 lines
784 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);
|
|
});
|
|
});
|