11import { expect , test } from '@playwright/test' ;
22import { waitForTransaction } from '@sentry-internal/test-utils' ;
33
4- // TODO(https://github.com/opennextjs/opennextjs-cloudflare/issues/1141): Unskip once opennext supports prefetch-hints.json
5- test . skip ( 'should remove sentry-trace and baggage meta tags on ISR dynamic route page load' , async ( { page } ) => {
4+ test ( 'should remove sentry-trace and baggage meta tags on ISR dynamic route page load' , async ( { page } ) => {
65 // Navigate to ISR page
76 await page . goto ( '/isr-test/laptop' ) ;
87
@@ -14,8 +13,7 @@ test.skip('should remove sentry-trace and baggage meta tags on ISR dynamic route
1413 await expect ( page . locator ( 'meta[name="baggage"]' ) ) . toHaveCount ( 0 ) ;
1514} ) ;
1615
17- // TODO(https://github.com/opennextjs/opennextjs-cloudflare/issues/1141): Unskip once opennext supports prefetch-hints.json
18- test . skip ( 'should remove sentry-trace and baggage meta tags on ISR static route' , async ( { page } ) => {
16+ test ( 'should remove sentry-trace and baggage meta tags on ISR static route' , async ( { page } ) => {
1917 // Navigate to ISR static page
2018 await page . goto ( '/isr-test/static' ) ;
2119
@@ -27,8 +25,7 @@ test.skip('should remove sentry-trace and baggage meta tags on ISR static route'
2725 await expect ( page . locator ( 'meta[name="baggage"]' ) ) . toHaveCount ( 0 ) ;
2826} ) ;
2927
30- // TODO(https://github.com/opennextjs/opennextjs-cloudflare/issues/1141): Unskip once opennext supports prefetch-hints.json
31- test . skip ( 'should remove meta tags for different ISR dynamic route values' , async ( { page } ) => {
28+ test ( 'should remove meta tags for different ISR dynamic route values' , async ( { page } ) => {
3229 // Test with 'phone' (one of the pre-generated static params)
3330 await page . goto ( '/isr-test/phone' ) ;
3431 await expect ( page . locator ( '#isr-product-id' ) ) . toHaveText ( 'phone' ) ;
@@ -44,8 +41,7 @@ test.skip('should remove meta tags for different ISR dynamic route values', asyn
4441 await expect ( page . locator ( 'meta[name="baggage"]' ) ) . toHaveCount ( 0 ) ;
4542} ) ;
4643
47- // TODO(https://github.com/opennextjs/opennextjs-cloudflare/issues/1141): Unskip once opennext supports prefetch-hints.json
48- test . skip ( 'should create unique transactions for ISR pages on each visit' , async ( { page } ) => {
44+ test ( 'should create unique transactions for ISR pages on each visit' , async ( { page } ) => {
4945 const traceIds : string [ ] = [ ] ;
5046
5147 // Load the same ISR page 5 times to ensure cached HTML meta tags are consistently removed
@@ -75,8 +71,7 @@ test.skip('should create unique transactions for ISR pages on each visit', async
7571 expect ( uniqueTraceIds . size ) . toBe ( 5 ) ;
7672} ) ;
7773
78- // TODO(https://github.com/opennextjs/opennextjs-cloudflare/issues/1141): Unskip once opennext supports prefetch-hints.json
79- test . skip ( 'ISR route should be identified correctly in the route manifest' , async ( { page } ) => {
74+ test ( 'ISR route should be identified correctly in the route manifest' , async ( { page } ) => {
8075 const transactionPromise = waitForTransaction ( 'nextjs-16-cf-workers' , async transactionEvent => {
8176 return transactionEvent . transaction === '/isr-test/:product' && transactionEvent . contexts ?. trace ?. op === 'pageload' ;
8277 } ) ;
0 commit comments