fix(webui): stabilize interaction tests and tooltip dismissal

This commit is contained in:
chengyongru authored and chengyongru committed 2026-10-27 15:46:32 +08:00
1 parent c4dac649da
commit 8aa0deaca3
9 files changed
+172 -24

No files matched your search

@@ -1,6 +1,6 @@
import { act, render, screen, waitFor, within } from "@testing-library/react";
import userEvent from "@testing-library/user-event";
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
import { SessionInfoPopover } from "@/components/thread/SessionInfoPopover";
import { setAppLanguage } from "@/i18n";
@@ -34,6 +34,8 @@ function automationsResponse(jobs: unknown[]) {
}
describe("SessionInfoPopover", () => {
beforeAll(async () => { await import("@/components/settings/system/AutomationsSettings"); });
beforeEach(async () => {
await setAppLanguage("en");
requestMutation.mockReset();