refactor(webui): simplify preset save label

This commit is contained in:
Xubin Ren committed 2026-08-29 21:22:20 +08:00
1 parent 97fb9aaf72
commit e6c839ee37
13 files changed
+20 -20

No files matched your search

+1 -1
View File
@@ -2531,7 +2531,7 @@ describe("App layout", () => {
).toBe(true);
await user.click(screen.getByRole("button", { name: "Select model" }));
await user.click(await screen.findByRole("option", { name: /openai\/gpt-4o-mini/ }));
expect(screen.getByRole("button", { name: "Save preset" })).toBeEnabled();
expect(screen.getByRole("button", { name: "Save" })).toBeEnabled();
fireEvent.click(screen.getByRole("button", { name: "Cancel" }));
expect(screen.queryByText("Up to date.")).not.toBeInTheDocument();
fireEvent.click(