11import { expect , test } from '@playwright/test' ;
22import { collectStreamedSpans , getSpanOp } from '@sentry-internal/test-utils' ;
3- import { CACHE_ORIGIN_LINK_ATTRIBUTES , findCacheSpan } from './cacheOriginLinkUtils ' ;
3+ import { CACHE_ORIGIN_LINK_ATTRIBUTES , findCacheSpan } from './cacheOriginLinks-utils ' ;
44
55// Origin links (`sentry.link.type: 'cache_origin'` on `cache.get` hit spans, pointing at the
66// filling `cache.put`) for `use cache` in nested layout trees under `app/(cached-nesting)/`.
@@ -10,7 +10,7 @@ import { CACHE_ORIGIN_LINK_ATTRIBUTES, findCacheSpan } from './cacheOriginLinkUt
1010// param. If Next serves the entry from the prerendered shell (Resume Data Cache) instead of the
1111// cache handlers, there is no `cache.get` span at all — then this stays failing until Next
1212// exposes RDC reads.
13- test ( 'links a cached layout hit to the trace that filled it ' , async ( { request } ) => {
13+ test ( 'links a cached layout hit to the trace that filled the layout entry ' , async ( { request } ) => {
1414 test . fail ( ) ;
1515
1616 const id = crypto . randomUUID ( ) ;
@@ -54,7 +54,9 @@ test('links a cached layout hit to the trace that filled it', async ({ request }
5454
5555// Inverse nesting: all layouts above are dynamic, only the leaf component is cached — the leaf
5656// entry is the only span that carries a link.
57- test ( 'links a cached leaf under dynamic layouts to the trace that filled it' , async ( { request } ) => {
57+ test ( 'links a cached leaf component under dynamic layouts to the trace that filled the leaf entry' , async ( {
58+ request,
59+ } ) => {
5860 test . fail ( ) ;
5961
6062 const id = crypto . randomUUID ( ) ;
@@ -180,7 +182,9 @@ test('links two cached levels to different origin traces after the layout expire
180182
181183// Routes `a` and `b` share one layout entry: a hit on `b` links to the fill trace of `a`, so the
182184// origin is a different transaction than the serving one.
183- test ( 'links a shared layout hit on a sibling route to the route that filled it' , async ( { request } ) => {
185+ test ( 'links a shared layout hit on a sibling route to the trace of the route that filled the entry' , async ( {
186+ request,
187+ } ) => {
184188 test . fail ( ) ;
185189
186190 const id = crypto . randomUUID ( ) ;
0 commit comments