@@ -22,7 +22,7 @@ describe('bot detection', () => {
2222 expect ( botResult . isBot ) . toBe ( true )
2323 expect ( botResult . botName ) . toBe ( 'googlebot' )
2424 expect ( botResult . botCategory ) . toBe ( 'search-engine' )
25- } )
25+ } , 15_000 )
2626
2727 it ( 'detects non-bot user agent correctly' , async ( ) => {
2828 const humanResult = await $fetch ( '/api/bot-detection' , {
@@ -34,7 +34,7 @@ describe('bot detection', () => {
3434 expect ( humanResult . isBot ) . toBe ( false )
3535 expect ( humanResult . botName ) . toBeUndefined ( )
3636 expect ( humanResult . botCategory ) . toBeUndefined ( )
37- } )
37+ } , 15_000 )
3838
3939 it ( 'detects browser fingerprinting as bot via createPage' , async ( ) => {
4040 const page = await createPage ( '/bot-detection' )
@@ -49,7 +49,7 @@ describe('bot detection', () => {
4949 expect ( isBotText ) . toContain ( 'is bot: true' )
5050 expect ( botNameText ) . toContain ( 'bot name: puppeteer' )
5151 expect ( trustedText ) . toContain ( 'trusted: false' )
52- } )
52+ } , 15_000 )
5353
5454 it ( 'compares browser fingerprinting vs server-side detection' , async ( ) => {
5555 // Server-side detection (should not detect browser as bot)
@@ -62,5 +62,5 @@ describe('bot detection', () => {
6262
6363 const isBotText = await page . textContent ( '[data-test-id="is-bot"]' )
6464 expect ( isBotText ) . toContain ( 'is bot: true' )
65- } )
65+ } , 15_000 )
6666} )
0 commit comments