From b68f34218e5be1c9d78c67611d454c167995870f Mon Sep 17 00:00:00 2001 From: Julian Descottes Date: Mon, 1 Jul 2024 09:47:40 +0000 Subject: [PATCH] Bug 1901955 - [devtools] Wait until all editors are available in browser_styleeditor_syncAddRule r=devtools-reviewers,nchevobbe Depends on D215322 Differential Revision: https://phabricator.services.mozilla.com/D215326 --- .../client/styleeditor/test/browser_styleeditor_syncAddRule.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/devtools/client/styleeditor/test/browser_styleeditor_syncAddRule.js b/devtools/client/styleeditor/test/browser_styleeditor_syncAddRule.js index 84fe0f2575a4..2680d6351bd7 100644 --- a/devtools/client/styleeditor/test/browser_styleeditor_syncAddRule.js +++ b/devtools/client/styleeditor/test/browser_styleeditor_syncAddRule.js @@ -21,6 +21,8 @@ add_task(async function () { const { ui } = await openStyleEditor(); + await waitUntil(() => ui.editors.length > 1); + info("Selecting the second editor"); await ui.selectStyleSheet(ui.editors[1].styleSheet);