Skip to content

Commit 7e199fb

Browse files
committed
chore(browser): synchronize screenshot fixture repaint
1 parent 2f6093a commit 7e199fb

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎apps/desktop/e2e/browser-tools.spec.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,8 @@ test.describe('browser tools', () => {
563563
.find((wc) => wc.getURL() === `${origin}/form`)
564564
if (!contents) throw new Error('Missing screenshot fixture')
565565
await contents.executeJavaScript(
566-
`document.body.style.background = ${JSON.stringify(color)}; void 0`
566+
`document.body.style.background = ${JSON.stringify(color)};
567+
new Promise(resolve => requestAnimationFrame(() => requestAnimationFrame(resolve)))`
567568
)
568569
},
569570
{ origin, color }

0 commit comments

Comments
 (0)