From a192eaa20f627d45e6675a7367fa1e8b07db9f49 Mon Sep 17 00:00:00 2001 From: Cody Seibert Date: Thu, 18 Dec 2025 00:00:00 -0500 Subject: [PATCH] test: update worktree integration tests for branch input handling - Added functionality to select "Other branch" in the edit feature dialog, enabling the branch input field. - Updated the locator for the branch input from 'edit-feature-branch' to 'edit-feature-input' for consistency across tests. --- apps/app/tests/worktree-integration.spec.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/apps/app/tests/worktree-integration.spec.ts b/apps/app/tests/worktree-integration.spec.ts index f7cb7851..1fa10e51 100644 --- a/apps/app/tests/worktree-integration.spec.ts +++ b/apps/app/tests/worktree-integration.spec.ts @@ -2414,8 +2414,12 @@ test.describe("Worktree Integration Tests", () => { const editDialog = page.locator('[data-testid="edit-feature-dialog"]'); await expect(editDialog).toBeVisible({ timeout: 5000 }); + // Select "Other branch" to enable the branch input + const otherBranchRadio = page.locator('label[for="edit-feature-other"]'); + await otherBranchRadio.click(); + // Find and click on the branch input to open the autocomplete - const branchInput = page.locator('[data-testid="edit-feature-branch"]'); + const branchInput = page.locator('[data-testid="edit-feature-input"]'); await branchInput.click(); await page.waitForTimeout(300); @@ -2509,7 +2513,7 @@ test.describe("Worktree Integration Tests", () => { await expect(editDialog).toBeVisible({ timeout: 5000 }); // Find and click on the branch input - const branchInput = page.locator('[data-testid="edit-feature-branch"]'); + const branchInput = page.locator('[data-testid="edit-feature-input"]'); await branchInput.click(); await page.waitForTimeout(300); @@ -2568,7 +2572,7 @@ test.describe("Worktree Integration Tests", () => { await expect(editDialog).toBeVisible({ timeout: 5000 }); // Change to the existing branch - const branchInput = page.locator('[data-testid="edit-feature-branch"]'); + const branchInput = page.locator('[data-testid="edit-feature-input"]'); await branchInput.click(); await page.waitForTimeout(300);