From 9dc331ec621cad157a7a8046b3eb0bfce2412e08 Mon Sep 17 00:00:00 2001 From: Calixte Denizet Date: Tue, 22 Dec 2020 16:50:28 +0100 Subject: [PATCH] Remove timeout in annotation integration test --- test/integration/annotation_spec.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/integration/annotation_spec.js b/test/integration/annotation_spec.js index 40971ddd5..15f5ec664 100644 --- a/test/integration/annotation_spec.js +++ b/test/integration/annotation_spec.js @@ -39,7 +39,10 @@ describe("Annotation highlight", () => { ); expect(hidden).withContext(`In ${browserName}`).toEqual(true); await page.hover("[data-annotation-id='19R']"); - await page.waitForTimeout(100); + await page.waitForSelector("[data-annotation-id='21R']", { + visible: true, + timeout: 0, + }); hidden = await page.$eval( "[data-annotation-id='21R']", el => el.hidden