diff --git a/e2e/appActions.js b/e2e/appActions.js index 5a302afab4..2629b07e8b 100644 --- a/e2e/appActions.js +++ b/e2e/appActions.js @@ -235,6 +235,12 @@ async function expandEntireTree(page, treeName = "Main Tree") { while (await collapsedTreeItems.count() > 0) { await collapsedTreeItems.nth(0).click(); + + // FIXME: Replace hard wait with something event-driven. + // Without the wait, this fails periodically due to a race condition + // with Vue rendering (loop exits prematurely). + // eslint-disable-next-line playwright/no-wait-for-timeout + await page.waitForTimeout(200); } }