🎥 Make videos programmatically with React
add test for scaled background clip
JonnyBurger68a2297779ca
diff --git a/packages/web-renderer/src/test/background-clip.test.tsx b/packages/web-renderer/src/test/background-clip.test.tsxindex 9c99eb467f..b1002e4d18 100644--- a/packages/web-renderer/src/test/background-clip.test.tsx+++ b/packages/web-renderer/src/test/background-clip.test.tsx@@ -1,4 +1,5 @@import {test} from 'vitest';+import {page} from 'vitest/browser';import {renderStillOnWeb} from '../render-still-on-web';import '../symbol-dispose';import {backgroundClipText} from './fixtures/text/background-clip-text';@@ -20,3 +21,22 @@ test('should render background-clip: text', async () => {allowedMismatchedPixelRatio: 0.03,});});++test('should render background-clip: text (scaled)', async () => {+ await page.viewport(800, 1400);+ const {blob} = await renderStillOnWeb({+ licenseKey: 'free-license',+ composition: backgroundClipText,+ frame: 0,+ inputProps: {},+ imageFormat: 'png',+ scale: 2,+ });++ await testImage({+ blob,+ testId: 'background-clip-text-scaled',+ threshold: 0,+ allowedMismatchedPixelRatio: 0.03,+ });+});