Turn any idea, plan, or codebase into a beautiful interactive diagram. An agent skill for Claude Code, Codex, and more.
HTML agent-skillsai-agentsarchitecture-diagramclaude-codeclaude-skillscodexcoding-agentsdeepseek-harnessdeveloper-toolsdiagramsdiagrams-as-codedsh-pluginflowchartllmmermaidopencodesequence-diagramsoftware-architecturesystem-designvisualization
test: isolate motion preference between browser fixtures
杨嘉伟21101be039ac
diff --git a/test/motion-governor-browser.test.mjs b/test/motion-governor-browser.test.mjsindex cfa54b76..41a380fe 100644--- a/test/motion-governor-browser.test.mjs+++ b/test/motion-governor-browser.test.mjs@@ -58,7 +58,7 @@ test('Motion Governor preserves mode, ownership, ambient completion and real cal}async function load(mode = 'architecture', { theme = 'dark', reduced = false, fixture = '', preserveStorage = false, query = '' } = {}) {const expectedNavigation = ++navigationId;- if (!preserveStorage) {+ if (!preserveStorage && !fixture) {fixtureUrl = pathToFileURL(files[mode]).href + `?theme=${theme}&testNavigation=${expectedNavigation}${query}`;// Reset the disposable browser profile before navigation. Touching// localStorage in a new-document script can disturb file-backed storage@@ -102,6 +102,12 @@ test('Motion Governor preserves mode, ownership, ambient completion and real calassert.ok(navigation.loaderId, 'Motion fixture must load a new document.');}await loaded;+ if (!preserveStorage) {+ // Chrome's file-backed storage can outlive Storage.clearDataForStorageKey+ // between fresh fixture navigations. Remove only this test preference+ // after the new document has loaded so each fixture starts cleanly.+ await run('localStorage.removeItem("archify-motion")');+ }await run('document.fonts.ready');assert.equal(await run('window.motionNavigation'), expectedNavigation, 'Motion fixture document identity');}