@@ -150,6 +150,8 @@ test.describe("Workspace Manager V2 bootstrap", () => {
150150 await expect ( page . locator ( "#launchContextSummary" ) ) . toHaveText ( "Session launch context is ready for Asteroids." ) ;
151151 await expect ( page . locator ( "#workspaceContextOutput" ) ) . toContainText ( '"gameRoot": "games/Asteroids/"' ) ;
152152 await expect ( page . locator ( "#workspaceContextOutput" ) ) . toContainText ( '"assetsPath": "games/Asteroids/assets"' ) ;
153+ await expect ( page . locator ( "#workspaceContextOutput" ) ) . toContainText ( '"activePalette"' ) ;
154+ await expect ( page . locator ( "#workspaceContextOutput" ) ) . toContainText ( '"source": "workspace-manager-v2"' ) ;
153155 await expect ( page . locator ( "#workspaceContextOutput" ) ) . toContainText ( '"owner": "workspace-manager-v2"' ) ;
154156 await expect ( page . locator ( "#workspaceContextOutput" ) ) . not . toContainText ( "samples/" ) ;
155157 await expect ( page . locator ( "#workspaceContextOutput" ) ) . not . toContainText ( "tools/" ) ;
@@ -165,15 +167,16 @@ test.describe("Workspace Manager V2 bootstrap", () => {
165167 await expect ( page . locator ( "#assetLaunchGuard" ) ) . toBeHidden ( ) ;
166168 await expect ( page . locator ( ".asset-manager-v2__tool__menu" ) ) . toBeHidden ( ) ;
167169 await expect ( page . locator ( ".asset-manager-v2__workspace__menu" ) ) . toBeVisible ( ) ;
168- await expect ( page . locator ( "#statusLog" ) ) . toHaveValue ( / W o r k s p a c e m o d e l o a d e d 0 v a l i d a t e d a s s e t s f r o m t o o l s \. a s s e t - b r o w s e r \. a s s e t s / ) ;
169- await expect ( page . locator ( "#statusLog" ) ) . toHaveValue ( / W o r k s p a c e m o d e l o a d e d \d + p a l e t t e c o l o r s f r o m t o o l s \. p a l e t t e - b r o w s e r \. s w a t c h e s / ) ;
170+ await expect ( page . locator ( "#statusLog" ) ) . toHaveValue ( / W o r k s p a c e M a n a g e r V 2 l o a d e d 0 v a l i d a t e d a s s e t s f r o m t o o l s \. a s s e t - b r o w s e r \. a s s e t s / ) ;
171+ await expect ( page . locator ( "#statusLog" ) ) . toHaveValue ( / W o r k s p a c e M a n a g e r V 2 l o a d e d \d + p a l e t t e c o l o r s f r o m a c t i v e p a l e t t e c o n t e x t / ) ;
170172
171173 const workspacePreviewContext = await page . evaluate ( async ( ) => {
172174 const { WorkspaceBridge } = await import ( "/tools/asset-manager-v2/js/services/WorkspaceBridge.js" ) ;
173175 return new WorkspaceBridge ( { windowRef : window } ) . readWorkspacePreviewContext ( ) ;
174176 } ) ;
175177 expect ( workspacePreviewContext ) . toEqual ( {
176178 workspaceMode : true ,
179+ workspaceAssetsPath : "games/Asteroids/assets" ,
177180 workspaceGameId : "Asteroids" ,
178181 workspaceGameRoot : "games/Asteroids/"
179182 } ) ;
@@ -187,6 +190,8 @@ test.describe("Workspace Manager V2 bootstrap", () => {
187190 expect ( storedContext . version ) . toBe ( "workspace-manager-v2" ) ;
188191 expect ( storedContext . gameRoot ) . toBe ( "games/Asteroids/" ) ;
189192 expect ( storedContext . assetsPath ) . toBe ( "games/Asteroids/assets" ) ;
193+ expect ( storedContext . activePalette . source ) . toBe ( "workspace-manager-v2" ) ;
194+ expect ( storedContext . activePalette . swatches . length ) . toBeGreaterThan ( 0 ) ;
190195 expect ( storedContext . workspaceManifest . tools [ "palette-browser" ] . swatches . length ) . toBeGreaterThan ( 0 ) ;
191196 expect ( storedContext . workspaceManifest . tools [ "asset-browser" ] . assets ) . toEqual ( { } ) ;
192197 expect ( JSON . stringify ( storedContext ) ) . not . toMatch ( / s a m p l e s \/ / i) ;
0 commit comments