From 1c711623a7d07309a9c8d47fd80fa2a7ce47fef9 Mon Sep 17 00:00:00 2001 From: Lukas Stracke Date: Thu, 12 Dec 2024 17:45:19 +0100 Subject: [PATCH] fix integration test --- .../pageload-updateSpanName/test.ts | 6 +++--- .../opentelemetry/test/utils/parseSpanDescription.test.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/pageload-updateSpanName/test.ts b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/pageload-updateSpanName/test.ts index c49a1b3116a1..2dad90486b73 100644 --- a/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/pageload-updateSpanName/test.ts +++ b/dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegration/pageload-updateSpanName/test.ts @@ -1,5 +1,5 @@ import { expect } from '@playwright/test'; -import type { Event } from '@sentry/types'; +import type { Event } from '@sentry/core'; import { SEMANTIC_ATTRIBUTE_SENTRY_OP, @@ -12,12 +12,12 @@ import { getFirstSentryEnvelopeRequest, shouldSkipTracingTest } from '../../../. sentryTest( 'sets the source to custom when updating the transaction name with Sentry.updateSpanName', - async ({ getLocalTestPath, page }) => { + async ({ getLocalTestUrl, page }) => { if (shouldSkipTracingTest()) { sentryTest.skip(); } - const url = await getLocalTestPath({ testDir: __dirname }); + const url = await getLocalTestUrl({ testDir: __dirname }); const eventData = await getFirstSentryEnvelopeRequest(page, url); diff --git a/packages/opentelemetry/test/utils/parseSpanDescription.test.ts b/packages/opentelemetry/test/utils/parseSpanDescription.test.ts index 6656ccac1c4e..2e87808568a5 100644 --- a/packages/opentelemetry/test/utils/parseSpanDescription.test.ts +++ b/packages/opentelemetry/test/utils/parseSpanDescription.test.ts @@ -18,8 +18,8 @@ import { import { SEMANTIC_ATTRIBUTE_SENTRY_SOURCE } from '@sentry/core'; import { descriptionForHttpMethod, - getUserUpdatedNameAndSource, getSanitizedUrl, + getUserUpdatedNameAndSource, parseSpanDescription, } from '../../src/utils/parseSpanDescription';