From 74041e708d2af4fde542d0351bfacd57aadeb2a3 Mon Sep 17 00:00:00 2001 From: Andrei Borza Date: Fri, 4 Sep 2026 18:00:37 +0200 Subject: [PATCH] test(e2e): Restore dropped url attribute assertions in the astro-4 and astro-5 specs The span-streaming port dropped `url.template`, `url.path` and `url.full` from the client pageload assertions in the static and server-island specs. --- .../test-applications/astro-4/tests/tracing.static.test.ts | 3 +++ .../astro-5/tests/tracing.serverIslands.test.ts | 3 +++ .../test-applications/astro-5/tests/tracing.static.test.ts | 3 +++ 3 files changed, 9 insertions(+) diff --git a/dev-packages/e2e-tests/test-applications/astro-4/tests/tracing.static.test.ts b/dev-packages/e2e-tests/test-applications/astro-4/tests/tracing.static.test.ts index 4e4f26bb9073..6a3ff26ae4d8 100644 --- a/dev-packages/e2e-tests/test-applications/astro-4/tests/tracing.static.test.ts +++ b/dev-packages/e2e-tests/test-applications/astro-4/tests/tracing.static.test.ts @@ -33,6 +33,9 @@ test.describe('tracing in static/pre-rendered routes', () => { 'sentry.op': { value: 'pageload', type: 'string' }, 'sentry.origin': { value: 'auto.pageload.astro', type: 'string' }, 'sentry.segment.name.source': { value: 'route', type: 'string' }, + 'url.template': { value: '/test-static', type: 'string' }, + 'url.path': { value: '/test-static', type: 'string' }, + 'url.full': { value: expect.stringMatching(/^https?:\/\/localhost:\d+\/test-static$/), type: 'string' }, }); await page.waitForTimeout(1000); // wait another sec to ensure no server span is sent diff --git a/dev-packages/e2e-tests/test-applications/astro-5/tests/tracing.serverIslands.test.ts b/dev-packages/e2e-tests/test-applications/astro-5/tests/tracing.serverIslands.test.ts index 29febfaa3eab..7b339a3b3911 100644 --- a/dev-packages/e2e-tests/test-applications/astro-5/tests/tracing.serverIslands.test.ts +++ b/dev-packages/e2e-tests/test-applications/astro-5/tests/tracing.serverIslands.test.ts @@ -34,6 +34,9 @@ test.describe('tracing in static routes with server islands', () => { 'sentry.op': { value: 'pageload', type: 'string' }, 'sentry.origin': { value: 'auto.pageload.astro', type: 'string' }, 'sentry.segment.name.source': { value: 'route', type: 'string' }, + 'url.template': { value: '/server-island', type: 'string' }, + 'url.path': { value: '/server-island', type: 'string' }, + 'url.full': { value: expect.stringMatching(/^https?:\/\/localhost:\d+\/server-island$/), type: 'string' }, }); // the pageload trace contains a resource link span for the preloaded server island request. diff --git a/dev-packages/e2e-tests/test-applications/astro-5/tests/tracing.static.test.ts b/dev-packages/e2e-tests/test-applications/astro-5/tests/tracing.static.test.ts index af781d3c8ed9..ee052d4318ab 100644 --- a/dev-packages/e2e-tests/test-applications/astro-5/tests/tracing.static.test.ts +++ b/dev-packages/e2e-tests/test-applications/astro-5/tests/tracing.static.test.ts @@ -33,6 +33,9 @@ test.describe('tracing in static/pre-rendered routes', () => { 'sentry.op': { value: 'pageload', type: 'string' }, 'sentry.origin': { value: 'auto.pageload.astro', type: 'string' }, 'sentry.segment.name.source': { value: 'route', type: 'string' }, + 'url.template': { value: '/test-static', type: 'string' }, + 'url.path': { value: '/test-static', type: 'string' }, + 'url.full': { value: expect.stringMatching(/^https?:\/\/localhost:\d+\/test-static$/), type: 'string' }, }); await page.waitForTimeout(1000); // wait another sec to ensure no server span is sent