File tree Expand file tree Collapse file tree 2 files changed +14
-5
lines changed
dev-packages/browser-integration-tests/suites/tracing/request
fetch-with-no-active-span Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -20,11 +20,16 @@ sentryTest(
20
20
21
21
await page . goto ( url ) ;
22
22
23
- // There are 6 requests in the page :
23
+ // Here are the requests that should exist :
24
24
// 1. HTML page
25
25
// 2. Init JS bundle
26
26
// 3. Subject JS bundle
27
+ // 4 [OPTIONAl] CDN JS bundle
27
28
// and then 3 fetch requests
28
- expect ( requestCount ) . toBe ( 6 ) ;
29
+ if ( process . env . PW_BUNDLE && process . env . PW_BUNDLE . startsWith ( 'bundle_' ) ) {
30
+ expect ( requestCount ) . toBe ( 7 ) ;
31
+ } else {
32
+ expect ( requestCount ) . toBe ( 6 ) ;
33
+ }
29
34
} ,
30
35
) ;
Original file line number Diff line number Diff line change @@ -14,18 +14,22 @@ sentryTest(
14
14
15
15
let requestCount = 0 ;
16
16
page . on ( 'request' , request => {
17
- console . log ( request . url ( ) ) ;
18
17
expect ( request . url ( ) ) . not . toContain ( url ) ;
19
18
requestCount ++ ;
20
19
} ) ;
21
20
22
21
await page . goto ( url ) ;
23
22
24
- // There are 6 requests in the page :
23
+ // Here are the requests that should exist :
25
24
// 1. HTML page
26
25
// 2. Init JS bundle
27
26
// 3. Subject JS bundle
27
+ // 4 [OPTIONAl] CDN JS bundle
28
28
// and then 3 fetch requests
29
- expect ( requestCount ) . toBe ( 6 ) ;
29
+ if ( process . env . PW_BUNDLE && process . env . PW_BUNDLE . startsWith ( 'bundle_' ) ) {
30
+ expect ( requestCount ) . toBe ( 7 ) ;
31
+ } else {
32
+ expect ( requestCount ) . toBe ( 6 ) ;
33
+ }
30
34
} ,
31
35
) ;
You can’t perform that action at this time.
0 commit comments