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.
This commit is contained in:
Cody Seibert
2025-12-19 21:03:47 -05:00
parent 3842eb1328
commit ff6a5a5565

View File

@@ -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