mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-28 07:30:04 +00:00
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:
@@ -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');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user