Q198: connector errors are shown whole and can be copied
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
9aa9a2aee7
commit
27d4ec3be3
10 files changed
+52
-65
No files matched your search
@@ -220,6 +220,13 @@ test("onboards, hires, and creates work in the Electron shell", async () => {
|
||||
await expect(page.getByRole("button", { name: "Refresh" })).toHaveCount(0);
|
||||
// Without a Composio key the account check fails, and the page says the statuses may be stale.
|
||||
await expect(page.getByRole("alert").filter({ hasText: "Account status could not be checked with Composio" })).toBeVisible();
|
||||
// A connector failure is shown whole and can be copied.
|
||||
const catalogError = page.getByRole("alert").filter({ has: page.getByRole("button", { name: "Retry" }) }).filter({ hasNotText: "Account status" }).first();
|
||||
await expect(catalogError).toBeVisible();
|
||||
const shownReason = (await catalogError.locator("span").first().innerText()).trim();
|
||||
await catalogError.getByRole("button", { name: "Copy" }).click();
|
||||
await expect(catalogError.getByRole("button", { name: "Copied" })).toBeVisible();
|
||||
expect((await app.evaluate(({ clipboard }) => clipboard.readText())).trim()).toBe(shownReason);
|
||||
|
||||
await page.getByRole("button", { name: "Settings" }).click();
|
||||
await expect(page.getByText("AI CEO", { exact: true })).toBeVisible();
|
||||
|
||||
Reference in new issue
Block a user