From 92e79453296afb832fce1b04e4716b4cd359de64 Mon Sep 17 00:00:00 2001 From: Test User Date: Sat, 20 Dec 2025 13:12:56 -0500 Subject: [PATCH] refactor: Update Worktree Integration Tests to reflect button changes - Renamed the Commit button to Mark as Verified in the test cases to align with recent UI changes. - Updated feature descriptions in the tests to match the new functionality. - Adjusted visibility checks for the Mark as Verified button to ensure accurate testing of the updated UI behavior. --- apps/ui/tests/worktree-integration.spec.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/ui/tests/worktree-integration.spec.ts b/apps/ui/tests/worktree-integration.spec.ts index f2a808c2..c3db89c9 100644 --- a/apps/ui/tests/worktree-integration.spec.ts +++ b/apps/ui/tests/worktree-integration.spec.ts @@ -2857,7 +2857,7 @@ test.describe("Worktree Integration Tests", () => { await expect(commitButton).not.toBeVisible({ timeout: 2000 }); }); - test("feature in waiting_approval without prUrl should show Commit button", async ({ + test("feature in waiting_approval without prUrl should show Mark as Verified button", async ({ page, }) => { await setupProjectWithPath(page, testRepo.path); @@ -2867,7 +2867,7 @@ test.describe("Worktree Integration Tests", () => { // Create a feature await clickAddFeature(page); - await fillAddFeatureDialog(page, "Feature without PR for commit test", { + await fillAddFeatureDialog(page, "Feature without PR for mark as verified test", { category: "Testing", }); await confirmAddFeature(page); @@ -2880,7 +2880,7 @@ test.describe("Worktree Integration Tests", () => { const featureFilePath = path.join(featuresDir, dir, "feature.json"); if (fs.existsSync(featureFilePath)) { const data = JSON.parse(fs.readFileSync(featureFilePath, "utf-8")); - return data.description === "Feature without PR for commit test"; + return data.description === "Feature without PR for mark as verified test"; } return false; }); @@ -2908,9 +2908,9 @@ test.describe("Worktree Integration Tests", () => { ); await expect(featureCard).toBeVisible({ timeout: 5000 }); - // Verify the Commit button is visible - const commitButton = page.locator(`[data-testid="commit-${featureData.id}"]`); - await expect(commitButton).toBeVisible({ timeout: 5000 }); + // Verify the Mark as Verified button is visible + const markAsVerifiedButton = page.locator(`[data-testid="mark-as-verified-${featureData.id}"]`); + await expect(markAsVerifiedButton).toBeVisible({ timeout: 5000 }); // Verify the Verify button is NOT visible const verifyButton = page.locator(`[data-testid="verify-${featureData.id}"]`);