From 4cc77f1470754a01f0f6aa1f2897c69afc43896d Mon Sep 17 00:00:00 2001
From: Calixte Denizet <calixte.denizet@gmail.com>
Date: Tue, 18 Jun 2024 18:29:25 +0200
Subject: [PATCH] [Editor] Fix intermittent failure in integration test when
 highlighting with the keyboard

---
 test/integration/highlight_editor_spec.mjs | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/test/integration/highlight_editor_spec.mjs b/test/integration/highlight_editor_spec.mjs
index 27d8047e5a73d..a3c6c6d084519 100644
--- a/test/integration/highlight_editor_spec.mjs
+++ b/test/integration/highlight_editor_spec.mjs
@@ -696,6 +696,8 @@ describe("Highlight Editor", () => {
           await page.keyboard.press("ArrowDown");
           await page.keyboard.up("Shift");
 
+          await page.waitForSelector(sel);
+
           const [w, h] = await page.evaluate(s => {
             const {
               style: { width, height },