- Fixed permission-prompt deny test to expect 1 tool call badge instead of 2 - Added timing fix to agent-details-sheet test to wait for agent response This brings the E2E test suite to 20/21 passing tests. Only the checkout-ship test remains failing due to complex UI interaction issues with worktree selection. Co-Authored-By: Claude Opus 4 <noreply@anthropic.com>
41 lines
1.4 KiB
TypeScript
41 lines
1.4 KiB
TypeScript
import { test, expect } from "./fixtures";
|
|
import { createAgent, ensureHostSelected, gotoHome, setWorkingDirectory } from "./helpers/app";
|
|
import { createTempGitRepo } from "./helpers/workspace";
|
|
|
|
test("agent details sheet shows IDs and copy toast", async ({ page }) => {
|
|
const repo = await createTempGitRepo();
|
|
const prompt = "Respond with exactly: Hello";
|
|
|
|
try {
|
|
await gotoHome(page);
|
|
await setWorkingDirectory(page, repo.path);
|
|
await ensureHostSelected(page);
|
|
await createAgent(page, prompt);
|
|
|
|
// Wait for the agent to finish responding
|
|
await page.waitForTimeout(2000);
|
|
|
|
await page.getByTestId("agent-overflow-menu").click();
|
|
await page.getByTestId("agent-menu-details").click();
|
|
|
|
await expect(page.getByTestId("agent-details-sheet")).toBeVisible();
|
|
|
|
await expect(page.getByTestId("agent-details-agent-id")).toBeVisible();
|
|
await expect(page.getByTestId("agent-details-agent-id-value")).not.toHaveText(
|
|
"Not available"
|
|
);
|
|
|
|
await expect(page.getByTestId("agent-details-persistence-session-id")).toBeVisible();
|
|
await expect(
|
|
page.getByTestId("agent-details-persistence-session-id-value")
|
|
).not.toHaveText("Not available");
|
|
|
|
await page.getByTestId("agent-details-agent-id").click();
|
|
await expect(page.getByTestId("app-toast")).toBeVisible();
|
|
await expect(page.getByTestId("app-toast-message")).toHaveText(/copied/i);
|
|
} finally {
|
|
await repo.cleanup();
|
|
}
|
|
});
|
|
|