11import { expect , test } from '@playwright/test' ;
22import { waitForTransaction } from '@sentry-internal/test-utils' ;
33
4- test ( 'should remove sentry-trace and baggage meta tags on ISR dynamic route page load' , async ( { page } ) => {
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 } ) => {
56 // Navigate to ISR page
67 await page . goto ( '/isr-test/laptop' ) ;
78
@@ -13,7 +14,8 @@ test('should remove sentry-trace and baggage meta tags on ISR dynamic route page
1314 await expect ( page . locator ( 'meta[name="baggage"]' ) ) . toHaveCount ( 0 ) ;
1415} ) ;
1516
16- test ( 'should remove sentry-trace and baggage meta tags on ISR static route' , async ( { page } ) => {
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 } ) => {
1719 // Navigate to ISR static page
1820 await page . goto ( '/isr-test/static' ) ;
1921
@@ -25,7 +27,8 @@ test('should remove sentry-trace and baggage meta tags on ISR static route', asy
2527 await expect ( page . locator ( 'meta[name="baggage"]' ) ) . toHaveCount ( 0 ) ;
2628} ) ;
2729
28- test ( 'should remove meta tags for different ISR dynamic route values' , async ( { page } ) => {
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 } ) => {
2932 // Test with 'phone' (one of the pre-generated static params)
3033 await page . goto ( '/isr-test/phone' ) ;
3134 await expect ( page . locator ( '#isr-product-id' ) ) . toHaveText ( 'phone' ) ;
@@ -41,7 +44,8 @@ test('should remove meta tags for different ISR dynamic route values', async ({
4144 await expect ( page . locator ( 'meta[name="baggage"]' ) ) . toHaveCount ( 0 ) ;
4245} ) ;
4346
44- test ( 'should create unique transactions for ISR pages on each visit' , async ( { page } ) => {
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 } ) => {
4549 const traceIds : string [ ] = [ ] ;
4650
4751 // Load the same ISR page 5 times to ensure cached HTML meta tags are consistently removed
@@ -71,7 +75,8 @@ test('should create unique transactions for ISR pages on each visit', async ({ p
7175 expect ( uniqueTraceIds . size ) . toBe ( 5 ) ;
7276} ) ;
7377
74- test ( 'ISR route should be identified correctly in the route manifest' , async ( { page } ) => {
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 } ) => {
7580 const transactionPromise = waitForTransaction ( 'nextjs-16-cf-workers' , async transactionEvent => {
7681 return transactionEvent . transaction === '/isr-test/:product' && transactionEvent . contexts ?. trace ?. op === 'pageload' ;
7782 } ) ;
0 commit comments