We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b333ec9 commit 2f10728Copy full SHA for 2f10728
1 file changed
frontend/src/features/settings/SettingsPage.test.tsx
@@ -48,6 +48,9 @@ describe("SettingsPage", () => {
48
49
async function openBackupMenu(label = "备份操作 20260309-101500.000") {
50
const trigger = await screen.findByRole("button", { name: label });
51
+ await waitFor(() => {
52
+ expect(trigger).not.toBeDisabled();
53
+ });
54
await act(async () => {
55
fireEvent.click(trigger);
56
});
@@ -364,6 +367,12 @@ describe("SettingsPage", () => {
364
367
}),
365
368
);
366
369
370
371
+ expect(
372
+ fetchMock.mock.calls.filter(([input, init]) => String(input) === "/ai-router/api/settings/database/backups" && (!init?.method || init.method === "GET"))
373
+ .length,
374
+ ).toBeGreaterThanOrEqual(3);
375
376
377
378
await openBackupMenu();
0 commit comments