test(web): pin image snapshot locale

This commit is contained in:
creatixchu
2026-07-31 18:44:18 +08:00
parent 739836a4c5
commit 76d20727ab

View File

@@ -55,6 +55,9 @@ let unmount: (() => void) | undefined
beforeEach(() => {
localStorage.clear()
// Chinese pinned before boot so the localized role/text locators stay
// deterministic across runner browser languages.
localStorage.setItem('dsh.locale', 'zh')
document.title = 'DeepSeek Harness'
vi.stubGlobal('ResizeObserver', ResizeObserverStub)
vi.stubGlobal('requestAnimationFrame', (callback: FrameRequestCallback) =>