Add e2e and integration tests for new features
E2e test updated to verify: virtual office sidebar toggle, Composio Tools settings tab visibility, and @mention with canonical handles. New integration test verifies that a human reply in a thread wakes agent participants without requiring explicit @mentions.
This commit is contained in:
1 parent
7d9995f62c
commit
3d685e5a4b
2 files changed
+83
-1
No files matched your search
@@ -164,6 +164,25 @@ test("onboards, hires, and creates work in the Electron shell", async () => {
|
||||
await page.getByRole("button", { name: "Set", exact: true }).click();
|
||||
await expect(page.getByRole("button", { name: "active", exact: true })).toBeDisabled();
|
||||
|
||||
// Virtual office sidebar toggle
|
||||
await page.getByRole("button", { name: "Office" }).click();
|
||||
await expect(page.locator(".office-sidebar")).toBeVisible();
|
||||
await page.locator(".office-sidebar").getByRole("button", { name: "Close office" }).click();
|
||||
await expect(page.locator(".office-sidebar")).not.toBeVisible();
|
||||
|
||||
// Composio settings panel
|
||||
await page.getByRole("button", { name: "Settings" }).click();
|
||||
await page.getByRole("button", { name: "Tools", exact: true }).click();
|
||||
await expect(page.getByText("External Tools")).toBeVisible();
|
||||
await expect(page.getByText("GitHub")).toBeVisible();
|
||||
|
||||
// @mention with canonical handle in chat
|
||||
await page.getByRole("button", { name: "Messages" }).click();
|
||||
await page.getByText("general").first().click();
|
||||
await page.getByRole("textbox", { name: "Message" }).fill("@alexchen what is the status?");
|
||||
await page.getByRole("button", { name: "Send" }).click();
|
||||
await expect(page.getByText("Alex Chen").first()).toBeVisible();
|
||||
|
||||
await verifyPagesDoNotOverflow(page);
|
||||
} finally {
|
||||
await app.close();
|
||||
@@ -205,7 +224,7 @@ async function verifyPagesDoNotOverflow(page: Page): Promise<void> {
|
||||
await page.getByRole("button", { name: nav, exact: true }).click();
|
||||
await expectPageToFit(page);
|
||||
}
|
||||
for (const tab of ["Workspace", "Billing", "Providers", "Skills", "Migration"]) {
|
||||
for (const tab of ["Workspace", "Billing", "Providers", "Tools", "Skills", "Migration"]) {
|
||||
await page.getByRole("button", { name: "Settings" }).click();
|
||||
await page.getByRole("button", { name: tab, exact: true }).click();
|
||||
await expectPageToFit(page);
|
||||
|
||||
Reference in new issue
Block a user