fix(studio): shapes named in every language, the align target kept across selections, up and down in a tab grid

This commit is contained in:
Maurice
2026-10-24 09:34:37 +02:00
parent 82bdf62c7b
commit 9695e269e3
38 changed files with 3143 additions and 14 deletions
@@ -0,0 +1,14 @@
import { describe, expect, it } from 'vitest';
import { useStudioStore } from '../../../src/store/studioStore';
/** FE-STUDIO-ALIGNTO-001: what the arrange section lines things up with stays as picked across selections. */
describe('the align target', () => {
it('FE-STUDIO-ALIGNTO-001: is kept when the selection changes', () => {
useStudioStore.setState({ alignTo: null, selection: [] });
useStudioStore.getState().setAlignTo('safe');
useStudioStore.getState().select(['a']);
useStudioStore.getState().select(['b', 'c']);
expect(useStudioStore.getState().alignTo).toBe('safe');
});
});