From 3cbb61c846f71a391e5de3699283789cde43d068 Mon Sep 17 00:00:00 2001 From: Balazs Bajorics <2226774+balazsbajorics@users.noreply.github.com> Date: Fri, 2 Feb 2024 17:47:29 +0100 Subject: [PATCH] sigh --- puppeteer-tests/src/comments/commenting.spec.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/puppeteer-tests/src/comments/commenting.spec.tsx b/puppeteer-tests/src/comments/commenting.spec.tsx index cbad4d7e76b2..480be98fd2c8 100644 --- a/puppeteer-tests/src/comments/commenting.spec.tsx +++ b/puppeteer-tests/src/comments/commenting.spec.tsx @@ -55,7 +55,9 @@ async function drag(page: Page, from: { x: number; y: number }, to: { x: number; async function dismissHoverPreview(page: Page) { await page.mouse.move(500, 500) - await wait(101) // the duration of the comment hover animation + 1ms + + // TODO instead of this horrible timer, actually away the animation finishing on screen, probably using selectors! + await wait(1000) // wait for the animation duration (100ms) + flaky test buffer (900ms) } describe('Comments test', () => {