From 1d4d19eb2f4b4db26ceef7d5655305d6fcd1883d Mon Sep 17 00:00:00 2001 From: localai-org-maint-bot <306269227+localai-org-maint-bot@users.noreply.github.com> Date: Sun, 27 Sep 2026 03:08:07 +0000 Subject: [PATCH] test(ui): wait for the automatic worker drawer An empty roster opens the worker drawer automatically. Clicking Add worker again targets the button behind the drawer and times out. Wait for the drawer before checking the backend and agent commands. The original test reproduces the CI failure. All six nodes-roster Playwright tests pass with the visibility assertion. Assisted-by: Codex:gpt-6 --- core/http/react-ui/e2e/nodes-roster.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/http/react-ui/e2e/nodes-roster.spec.js b/core/http/react-ui/e2e/nodes-roster.spec.js index f01c70ba0..cfaa4b9c1 100644 --- a/core/http/react-ui/e2e/nodes-roster.spec.js +++ b/core/http/react-ui/e2e/nodes-roster.spec.js @@ -49,7 +49,7 @@ test.describe('Nodes join command', () => { await mockCluster(page, []) await page.goto('/app/nodes') - await page.getByRole('button', { name: 'Add worker' }).first().click() + await expect(page.getByRole('dialog', { name: 'Add worker' })).toBeVisible({ timeout: 15_000 }) await page.getByRole('radio', { name: /^Backend$/ }).click() const backendCli = page.locator('.p2p-cmd pre').first() await expect(backendCli).toContainText('local-ai worker', { timeout: 15_000 })