Skip to content

Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.

test: pin English locale in Cursor pane preview

超超超超超级喜欢你的达妮娅c26215e889b1
diff --git a/src/components/ai-edition/CursorPane.preview.test.tsx b/src/components/ai-edition/CursorPane.preview.test.tsx
index 291a17561..e3336b963 100644
--- a/src/components/ai-edition/CursorPane.preview.test.tsx
+++ b/src/components/ai-edition/CursorPane.preview.test.tsx
@@ -2,6 +2,7 @@
import { cleanup, render, screen } from "@testing-library/react";
import { afterEach, beforeEach, describe, expect, it } from "vitest";
import { I18nProvider } from "@/contexts/I18nContext";
+import { LOCALE_STORAGE_KEY } from "@/i18n/config";
import { CursorPane } from "./RightPanes";
function stubStorage() {
@@ -27,6 +28,7 @@ function stubStorage() {
beforeEach(() => {
stubStorage();
+ window.localStorage.setItem(LOCALE_STORAGE_KEY, "en");
});
afterEach(() => {