Skip to content

The agent that grows with you

test(desktop): picking Basic over the intro demo keeps the user's Advanced layout

alt-glitch2c171dbea4a2
diff --git a/apps/desktop/src/components/onboarding/first-run/layout.test.ts b/apps/desktop/src/components/onboarding/first-run/layout.test.ts
index d01447d30cd..ce81bf00a2a 100644
--- a/apps/desktop/src/components/onboarding/first-run/layout.test.ts
+++ b/apps/desktop/src/components/onboarding/first-run/layout.test.ts
@@ -59,6 +59,24 @@ describe('first-run layout beat', () => {
expect($layoutTree.get()).toEqual(mine)
})
+ it('keeps the Advanced layout the user had when Basic is picked over the demo', () => {
+ skipIntro()
+ setInterfaceMode('advanced')
+ applyLayoutPreset('mine', group(['workspace']))
+ const mine = $layoutTree.get()
+
+ $introView.set('off')
+ openDemoLayout()
+ openIntro(false)
+ expect($layoutTree.get()).not.toEqual(mine)
+
+ expect(applyAppearance({ layout: 'sidebar-left' }).success).toBe(true)
+ expect($interfaceMode.get()).toBe('simple')
+
+ setInterfaceMode('advanced')
+ expect($layoutTree.get()).toEqual(mine)
+ })
+
it('sizes the window normal on Skip setup', () => {
skipIntro()