feat: consolidate legacy parity migration baseline

This commit is contained in:
2026-07-20 22:06:12 +09:00
parent 5eb4054120
commit 4a54977341
66 changed files with 5391 additions and 460 deletions

View File

@@ -35,7 +35,10 @@ test("UC4 renders original headings and action order in the Web vertical workspa
assert.doesNotMatch(app, /theme-nxt-session/u);
});
test("UC4 selection is immediate and selection receipts preserve the result DOM", () => {
test("UC4 defers a single click for double-click activation and preserves the result DOM", () => {
const doubleClick = section(
"categoryTree.addEventListener(\"dblclick\"",
"categoryTree.addEventListener(\"click\"");
const click = section(
"categoryTree.addEventListener(\"click\"",
"categoryTree.addEventListener(\"change\"");
@@ -50,8 +53,9 @@ test("UC4 selection is immediate and selection receipts preserve the result DOM"
const updater = section("function updateThemeWorkspace(workspace, theme)", "function renderTheme(state)");
assert.match(themeClick,
/send\("select-theme", \{ resultId: themeResult\.dataset\.themeResultId \}\)/u);
assert.doesNotMatch(themeClick, /setTimeout|themeResultClickTimer/u);
/clearDelayedClick\(themeResultClickTimer\);[\s\S]*const resultId = themeResult\.dataset\.themeResultId;[\s\S]*themeResultClickTimer = window\.setTimeout\(function \(\) \{[\s\S]*themeResultClickTimer = null;[\s\S]*send\("select-theme", \{ resultId: resultId \}\);[\s\S]*\}, 250\);/u);
assert.match(doubleClick,
/clearDelayedClick\(themeResultClickTimer\);[\s\S]*themeResultClickTimer = null;[\s\S]*send\("activate-theme-result", \{/u);
assert.match(render,
/existingWorkspace && structureKey === themeRenderStructureKey[\s\S]*updateThemeWorkspace\(existingWorkspace, theme\);[\s\S]*return;/u);
assert.doesNotMatch(updater, /categoryTree\.replaceChildren|results\.replaceChildren/u);