From 09bc5a16f4a904db00a17efaa4fc99e8f18dc3d8 Mon Sep 17 00:00:00 2001 From: Thomas Camlong Date: Mon, 10 Aug 2026 20:43:03 +0200 Subject: [PATCH] test: align assistant credential flow --- e2e/assistant-management.spec.ts | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/e2e/assistant-management.spec.ts b/e2e/assistant-management.spec.ts index 79b7ccce9..1aaf0042b 100644 --- a/e2e/assistant-management.spec.ts +++ b/e2e/assistant-management.spec.ts @@ -49,17 +49,16 @@ describe("Assistant management", () => { await page.goto(`${baseUrl}/manage/assistant`); await expect(page.getByRole("heading", { name: "Assistant" })).toBeVisible(); await expect(page.getByText("Connection ready")).toBeVisible(); - await expect(page.getByText("Key protected")).toBeVisible(); await expect(page.getByText("Encrypted API key saved")).toBeVisible(); await expect(page.getByRole("button", { name: "Remove saved API key" })).toBeVisible(); await page.getByRole("button", { name: "Additional request headers" }).click(); await expect(page.getByRole("button", { name: "Add header" })).toBeVisible(); - await page.getByRole("button", { name: "Remove all credentials" }).click(); - await expect(page.getByRole("dialog", { name: "Remove all assistant credentials" })).toBeVisible(); - await expect(page.getByRole("button", { name: "Remove credentials" })).toBeVisible(); - await page.getByRole("button", { name: "Keep credentials" }).click(); - await expect(page.getByRole("dialog", { name: "Remove all assistant credentials" })).toBeHidden(); + await page.getByRole("button", { name: "Remove saved API key" }).click(); + await expect(page.getByText("Remove the saved API key?")).toBeVisible(); + await expect(page.getByRole("button", { name: "Remove API key" })).toBeVisible(); + await page.getByRole("button", { name: "Keep saved key" }).click(); + await expect(page.getByText("Remove the saved API key?")).toBeHidden(); await page.setViewportSize({ width: 390, height: 844 }); await page.reload();