@@ -45,31 +45,16 @@ test.describe('Create Command', () => {
4545 await expect ( createCommandSection . locator ( 'code' ) ) . toContainText ( / c r e a t e n u x t / i)
4646 } )
4747
48- test ( '/color - should NOT show create command (different maintainers )' , async ( {
48+ test ( '/is-odd - should NOT show create command (no create-is-odd exists )' , async ( {
4949 page,
5050 goto,
5151 } ) => {
52- await goto ( '/package/color ' , { waitUntil : 'domcontentloaded' } )
52+ await goto ( '/package/is-odd ' , { waitUntil : 'domcontentloaded' } )
5353
5454 // Wait for package to load
55- await expect ( page . locator ( 'h1' ) . filter ( { hasText : 'color ' } ) ) . toBeVisible ( )
55+ await expect ( page . locator ( 'h1' ) . filter ( { hasText : 'is-odd ' } ) ) . toBeVisible ( )
5656
57- // Create command section should NOT be visible (different maintainers)
58- // Use .first() for consistency, though none should exist
59- const createCommandSection = page . locator ( '.group\\/createcmd' ) . first ( )
60- await expect ( createCommandSection ) . not . toBeVisible ( )
61- } )
62-
63- test ( '/lodash - should NOT show create command (no create-lodash exists)' , async ( {
64- page,
65- goto,
66- } ) => {
67- await goto ( '/package/lodash' , { waitUntil : 'domcontentloaded' } )
68-
69- // Wait for package to load
70- await expect ( page . locator ( 'h1' ) . filter ( { hasText : 'lodash' } ) ) . toBeVisible ( )
71-
72- // Create command section should NOT be visible (no create-lodash exists)
57+ // Create command section should NOT be visible (no create-is-odd exists)
7358 // Use .first() for consistency, though none should exist
7459 const createCommandSection = page . locator ( '.group\\/createcmd' ) . first ( )
7560 await expect ( createCommandSection ) . not . toBeVisible ( )
@@ -139,7 +124,7 @@ test.describe('Create Command', () => {
139124
140125 test . describe ( 'Install Command Copy' , ( ) => {
141126 test ( 'hovering install command shows copy button' , async ( { page, goto } ) => {
142- await goto ( '/package/lodash ' , { waitUntil : 'hydration' } )
127+ await goto ( '/package/is-odd ' , { waitUntil : 'hydration' } )
143128
144129 // Find the install command container
145130 const installCommandContainer = page . locator ( '.group\\/installcmd' ) . first ( )
@@ -164,7 +149,7 @@ test.describe('Create Command', () => {
164149 // Grant clipboard permissions
165150 await context . grantPermissions ( [ 'clipboard-read' , 'clipboard-write' ] )
166151
167- await goto ( '/package/lodash ' , { waitUntil : 'hydration' } )
152+ await goto ( '/package/is-odd ' , { waitUntil : 'hydration' } )
168153
169154 // Find and hover over the install command container
170155 const installCommandContainer = page . locator ( '.group\\/installcmd' ) . first ( )
@@ -179,7 +164,7 @@ test.describe('Create Command', () => {
179164
180165 // Verify clipboard content contains the install command
181166 const clipboardContent = await page . evaluate ( ( ) => navigator . clipboard . readText ( ) )
182- expect ( clipboardContent ) . toMatch ( / i n s t a l l l o d a s h | a d d l o d a s h / i)
167+ expect ( clipboardContent ) . toMatch ( / i n s t a l l i s - o d d | a d d i s - o d d / i)
183168
184169 await expect ( copyButton ) . toContainText ( / c o p y / i, { timeout : 5000 } )
185170 await expect ( copyButton ) . not . toContainText ( / c o p i e d / i)
0 commit comments