2025-12-04 11:06:33 +01:00
|
|
|
// Region Clipping Tests - Non-rectangular clipping regions
|
2026-07-07 10:50:24 +02:00
|
|
|
import { test, expect, waitForWxApp } from './utils/fixtures';
|
|
|
|
|
import { stableShot } from './utils/element-tracker';
|
2025-12-04 11:06:33 +01:00
|
|
|
|
|
|
|
|
test.describe('Region Clipping Tests', () => {
|
|
|
|
|
|
|
|
|
|
test('Region clipping renders correctly', async ({ page, testLogger }) => {
|
|
|
|
|
await page.goto('/standalone/regions/regions_test.html');
|
2026-07-07 10:50:24 +02:00
|
|
|
await waitForWxApp(page);
|
2025-12-04 11:06:33 +01:00
|
|
|
|
2026-07-07 10:50:24 +02:00
|
|
|
await stableShot(page, 'regions.png', { fullPage: true });
|
2025-12-04 11:06:33 +01:00
|
|
|
|
|
|
|
|
expect(testLogger.errors.filter(e => !e.includes('favicon'))).toHaveLength(0);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
});
|