@@ -263,7 +263,7 @@ test("Palette repository owns active project swatches without mutating invalid p
263263 expect ( repository . createHarmonySuggestions ( repository . findSwatch ( "R" ) , {
264264 matchSource : "calculated" ,
265265 schemeId : "triadic"
266- } ) ) . toHaveLength ( 3 ) ;
266+ } ) ) . toHaveLength ( 2 ) ;
267267
268268 repository . selectSwatch ( "R" ) ;
269269 repository . recordSwatchUsage ( { assetId : "asset.color.red" , symbol : "R" , toolId : "assets" } ) ;
@@ -346,10 +346,9 @@ test("Palette Tool adds, updates, pins, validates, and shows project-owned detai
346346 await page . locator ( "[data-palette-source-pin-all]" ) . click ( ) ;
347347 await expect ( page . locator ( "[data-palette-count]" ) ) . toHaveText ( "1" ) ;
348348 await expect ( page . locator ( "[data-palette-log]" ) ) . toContainText ( "0 pinned, 1 already pinned" ) ;
349- await expect ( page . locator ( "[data-palette-harmony-choice]" ) ) . toHaveCount ( 2 ) ;
349+ await expect ( page . locator ( "[data-palette-harmony-choice]" ) ) . toHaveCount ( 0 ) ;
350350 await expect ( page . locator ( "[data-palette-harmony-list]" ) ) . not . toContainText ( / C o m p l e m e n t a r y \d : / ) ;
351- await expect ( page . locator ( "[data-palette-harmony-choice]" ) . first ( ) ) . toHaveAttribute ( "title" , / ^ S c h e m e : C o m p l e m e n t a r y \n L a b e l : C o m p l e m e n t a r y 1 \n H e x : # [ 0 - 9 A - F ] { 6 } $ / ) ;
352- await expect ( page . locator ( "[data-palette-harmony-choice]" ) . first ( ) ) . toHaveAttribute ( "aria-label" , / C o m p l e m e n t a r y 1 # [ 0 - 9 A - F ] { 6 } f r o m C o m p l e m e n t a r y / ) ;
351+ await expect ( page . locator ( "[data-palette-harmony-list]" ) ) . toContainText ( "No harmony scheme colors available." ) ;
353352 await page . locator ( "[data-palette-user-list] [data-palette-swatch-name='Black'] [data-palette-pin-indicator]" ) . click ( ) ;
354353 await expect ( page . locator ( "[data-palette-count]" ) ) . toHaveText ( "0" ) ;
355354 await expect ( page . locator ( "[data-palette-selected-summary]" ) ) . toHaveText ( "None" ) ;
@@ -410,8 +409,10 @@ test("Palette Tool adds, updates, pins, validates, and shows project-owned detai
410409 await expect ( page . locator ( "[data-palette-selected-details]" ) ) . toHaveCount ( 0 ) ;
411410 await expect ( page . locator ( "[data-palette-project-accordion]" ) ) . not . toContainText ( / S y m b o l : | H e x : | N a m e : | S o u r c e : | T a g s : / ) ;
412411 await expect ( page . locator ( "[data-palette-table-counts]" ) ) . toContainText ( "palette_colors" ) ;
413- await expect ( page . locator ( "[data-palette-harmony-choice]" ) ) . toHaveCount ( 2 ) ;
412+ await expect ( page . locator ( "[data-palette-harmony-choice]" ) ) . toHaveCount ( 1 ) ;
414413 await expect ( page . locator ( "[data-palette-harmony-list]" ) ) . not . toContainText ( / C o m p l e m e n t a r y \d : / ) ;
414+ await expect ( page . locator ( "[data-palette-harmony-choice]" ) . first ( ) ) . toHaveAttribute ( "title" , / ^ S c h e m e : C o m p l e m e n t a r y \n L a b e l : C o m p l e m e n t a r y 1 \n H e x : # [ 0 - 9 A - F ] { 6 } $ / ) ;
415+ await expect ( page . locator ( "[data-palette-harmony-choice]" ) . first ( ) ) . toHaveAttribute ( "aria-label" , / C o m p l e m e n t a r y 1 # [ 0 - 9 A - F ] { 6 } f r o m C o m p l e m e n t a r y / ) ;
415416
416417 const activePreviewTile = page . locator ( "[data-palette-swatch-row='H']" ) ;
417418 await page . locator ( "[data-palette-user-sort] [data-palette-sort-key='hue']" ) . click ( ) ;
@@ -461,7 +462,7 @@ test("Palette Tool adds, updates, pins, validates, and shows project-owned detai
461462 await expect ( page . locator ( "[data-palette-log]" ) ) . toHaveText ( "Editor form cleared." ) ;
462463
463464 await page . locator ( "[data-palette-harmony-scheme]" ) . selectOption ( "triadic" ) ;
464- await expect ( page . locator ( "[data-palette-harmony-choice]" ) ) . toHaveCount ( 3 ) ;
465+ await expect ( page . locator ( "[data-palette-harmony-choice]" ) ) . toHaveCount ( 2 ) ;
465466 await expect ( page . locator ( "[data-palette-harmony-list]" ) ) . not . toContainText ( / T r i a d i c \d : / ) ;
466467 await expect ( page . locator ( "[data-palette-harmony-choice='1']" ) ) . toHaveAttribute ( "title" , / ^ S c h e m e : T r i a d i c \n L a b e l : T r i a d i c 2 \n H e x : # [ 0 - 9 A - F ] { 6 } $ / ) ;
467468 await expect ( page . locator ( "[data-palette-harmony-choice='1']" ) ) . toHaveAttribute ( "aria-label" , / T r i a d i c 2 # [ 0 - 9 A - F ] { 6 } f r o m T r i a d i c / ) ;
0 commit comments