Skip to content

Commit 5df252e

Browse files
committed
Restore the dropped url attribute assertions
1 parent 739ee96 commit 5df252e

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

dev-packages/e2e-tests/test-applications/astro-6/tests/tracing.serverIslands.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ test.describe('tracing in static routes with server islands', () => {
3434
'sentry.op': { value: 'pageload', type: 'string' },
3535
'sentry.origin': { value: 'auto.pageload.astro', type: 'string' },
3636
'sentry.segment.name.source': { value: 'route', type: 'string' },
37+
'url.template': { value: '/server-island', type: 'string' },
38+
'url.path': { value: '/server-island', type: 'string' },
39+
'url.full': { value: expect.stringMatching(/^https?:\/\/localhost:\d+\/server-island$/), type: 'string' },
3740
});
3841

3942
// the pageload trace contains a resource link span for the preloaded server island request.

dev-packages/e2e-tests/test-applications/astro-6/tests/tracing.static.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ test.describe('tracing in static/pre-rendered routes', () => {
3333
'sentry.op': { value: 'pageload', type: 'string' },
3434
'sentry.origin': { value: 'auto.pageload.astro', type: 'string' },
3535
'sentry.segment.name.source': { value: 'route', type: 'string' },
36+
'url.template': { value: '/test-static', type: 'string' },
37+
'url.path': { value: '/test-static', type: 'string' },
38+
'url.full': { value: expect.stringMatching(/^https?:\/\/localhost:\d+\/test-static$/), type: 'string' },
3639
});
3740

3841
await page.waitForTimeout(1000); // wait another sec to ensure no server span is sent

0 commit comments

Comments
 (0)