feat: consolidate legacy parity migration baseline
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user