fix(control): improve storyline history and graph launch
Append history on revisit instead of truncating, highlight the latest duplicate entry, add Start from this scene to the graph context menu, and keep storyline state isolated from project graph edits. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import assert from 'node:assert/strict';
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
import test from 'node:test';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
|
||||
const here = path.dirname(fileURLToPath(import.meta.url));
|
||||
|
||||
function readSceneGraph(): string {
|
||||
return fs.readFileSync(path.join(here, 'SceneGraph.tsx'), 'utf8');
|
||||
}
|
||||
|
||||
void test('SceneGraph: контекстное меню узла — «Запустить с этой сцены»', () => {
|
||||
const src = readSceneGraph();
|
||||
assert.ok(src.includes('runFromScene'));
|
||||
assert.ok(src.includes('onRunFromGraphNode'));
|
||||
assert.ok(src.includes('onRunFromGraphNode?.(menu.graphNodeId)'));
|
||||
});
|
||||
Reference in New Issue
Block a user