From ff6a5a556540188e1495c7a33059a04d947e6cb3 Mon Sep 17 00:00:00 2001 From: Cody Seibert Date: Fri, 19 Dec 2025 21:03:47 -0500 Subject: [PATCH] test: enhance visibility checks in worktree integration tests - Updated the description input locator to use a more specific selector. - Added a visibility check for the description textarea before filling it, improving test reliability. --- apps/ui/tests/worktree-integration.spec.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/ui/tests/worktree-integration.spec.ts b/apps/ui/tests/worktree-integration.spec.ts index d78db9a9..587f7085 100644 --- a/apps/ui/tests/worktree-integration.spec.ts +++ b/apps/ui/tests/worktree-integration.spec.ts @@ -2716,10 +2716,11 @@ test.describe("Worktree Integration Tests", () => { const editDialog = page.locator('[data-testid="edit-feature-dialog"]'); await expect(editDialog).toBeVisible({ timeout: 5000 }); - // Update the description + // Update the description - wait for the textarea to be visible const descInput = page.locator( - '[data-testid="edit-feature-description"] textarea' + '[data-testid="feature-description-input"]' ); + await expect(descInput).toBeVisible({ timeout: 5000 }); await descInput.fill("Feature with PR URL persistence - updated"); // Save the feature