@@ -22,7 +22,7 @@ describe('bot detection', () => {
22
22
expect ( botResult . isBot ) . toBe ( true )
23
23
expect ( botResult . botName ) . toBe ( 'googlebot' )
24
24
expect ( botResult . botCategory ) . toBe ( 'search-engine' )
25
- } )
25
+ } , 15_000 )
26
26
27
27
it ( 'detects non-bot user agent correctly' , async ( ) => {
28
28
const humanResult = await $fetch ( '/api/bot-detection' , {
@@ -34,7 +34,7 @@ describe('bot detection', () => {
34
34
expect ( humanResult . isBot ) . toBe ( false )
35
35
expect ( humanResult . botName ) . toBeUndefined ( )
36
36
expect ( humanResult . botCategory ) . toBeUndefined ( )
37
- } )
37
+ } , 15_000 )
38
38
39
39
it ( 'detects browser fingerprinting as bot via createPage' , async ( ) => {
40
40
const page = await createPage ( '/bot-detection' )
@@ -49,7 +49,7 @@ describe('bot detection', () => {
49
49
expect ( isBotText ) . toContain ( 'is bot: true' )
50
50
expect ( botNameText ) . toContain ( 'bot name: puppeteer' )
51
51
expect ( trustedText ) . toContain ( 'trusted: false' )
52
- } )
52
+ } , 15_000 )
53
53
54
54
it ( 'compares browser fingerprinting vs server-side detection' , async ( ) => {
55
55
// Server-side detection (should not detect browser as bot)
@@ -62,5 +62,5 @@ describe('bot detection', () => {
62
62
63
63
const isBotText = await page . textContent ( '[data-test-id="is-bot"]' )
64
64
expect ( isBotText ) . toContain ( 'is bot: true' )
65
- } )
65
+ } , 15_000 )
66
66
} )
0 commit comments