Skip to content

Commit 8d9ea6e

Browse files
committed
test(app-shell): place the added and the moved entry where array order alone would misplace them
Claude-Session: https://claude.ai/code/session_01ADHkmRB34k9WUWeGpRnVNm Co-authored-by: Claude <noreply@anthropic.com>
1 parent a62e5d8 commit 8d9ea6e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎ui/packages/app-shell/src/layout/__tests__/DesignModeMenu-36363.test.tsx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -767,21 +767,21 @@ describe('the design-mode menu in the sidebar order (objectstack#36591)', () =>
767767
servedNav.current = ORDERED();
768768
start();
769769
await flush();
770-
await act_on('customers', 'Add an item after');
770+
await act_on('contacts', 'Add an item after');
771771
const picker = await screen.findByTestId('design-menu-picker');
772772
fireEvent.click(within(picker).getByRole('button', { name: 'Objects' }));
773773
await flush();
774774
fireEvent.click(within(picker).getByRole('button', { name: 'Cases' }));
775775
await flush();
776-
const trigger = within(entry('opps')).getByTestId('design-menu-actions');
776+
const trigger = within(entry('customers')).getByTestId('design-menu-actions');
777777
fireEvent.pointerDown(trigger, { button: 0, pointerType: 'mouse' });
778778
await flush();
779779
fireEvent.click(await screen.findByRole('menuitem', { name: 'Move to group' }));
780780
await flush();
781781
fireEvent.click(await screen.findByRole('menuitem', { name: 'Reports' }));
782782
await flush();
783783
const shown = editorOrder();
784-
expect(shown).toEqual(['Customers', 'Cases', 'Contacts', 'Reports', 'Follow-ups', 'Pipeline', 'Opportunities']);
784+
expect(shown).toEqual(['Contacts', 'Cases', 'Opportunities', 'Reports', 'Follow-ups', 'Pipeline', 'Customers']);
785785
const saved = await save();
786786
cleanup();
787787
expect(sidebarOrder(saved)).toEqual(shown);

0 commit comments

Comments
 (0)