@@ -54,42 +54,6 @@ test.describe('npmjs.com URL Compatibility', () => {
5454 await expect ( page . locator ( 'text=/found \\d+/i' ) ) . toBeVisible ( )
5555 } )
5656
57- test ( '/search?q=vue → keyboard navigation (arrow keys + enter)' , async ( { page, goto } ) => {
58- await goto ( '/search?q=vue' , { waitUntil : 'domcontentloaded' } )
59-
60- await expect ( page . locator ( 'text=/found \\d+/i' ) ) . toBeVisible ( )
61-
62- const searchInput = page . locator ( 'input[type="search"]' )
63- await expect ( searchInput ) . toBeFocused ( )
64-
65- const firstResult = page . locator ( '[data-result-index="0"]' ) . first ( )
66- await expect ( firstResult ) . toBeVisible ( )
67-
68- await page . keyboard . press ( 'Enter' )
69- await expect ( page ) . toHaveURL ( / \/ p a c k a g e \/ / )
70-
71- await page . goBack ( )
72- await expect ( searchInput ) . toBeFocused ( )
73- await expect ( page . locator ( 'text=/found \\d+/i' ) ) . toBeVisible ( )
74-
75- await page . keyboard . press ( 'ArrowDown' )
76- const secondResult = page . locator ( '[data-result-index="1"]' ) . first ( )
77- await expect ( secondResult ) . toBeFocused ( )
78-
79- await page . keyboard . press ( 'Enter' )
80- await expect ( page ) . toHaveURL ( / \/ p a c k a g e \/ / )
81- } )
82-
83- test ( '/search?q=vue → "/" focuses the search input from results' , async ( { page, goto } ) => {
84- await goto ( '/search?q=vue' , { waitUntil : 'domcontentloaded' } )
85-
86- await expect ( page . locator ( 'text=/found \\d+/i' ) ) . toBeVisible ( )
87-
88- await page . locator ( '[data-result-index="0"]' ) . first ( ) . focus ( )
89- await page . keyboard . press ( '/' )
90- await expect ( page . locator ( 'input[type="search"]' ) ) . toBeFocused ( )
91- } )
92-
9357 test ( '/search?q=keywords:framework → keyword search' , async ( { page, goto } ) => {
9458 await goto ( '/search?q=keywords:framework' , { waitUntil : 'domcontentloaded' } )
9559
0 commit comments