Skip to content

Commit 67296f1

Browse files
committed
fix url check again
1 parent b4f927b commit 67296f1

File tree

1 file changed

+2
-2
lines changed
  • dev-packages/browser-integration-tests/suites/tracing/request/xhr-with-no-active-span

1 file changed

+2
-2
lines changed

dev-packages/browser-integration-tests/suites/tracing/request/xhr-with-no-active-span/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { expect } from '@playwright/test';
22

33
import { sentryTest } from '../../../../utils/fixtures';
4-
import { shouldSkipTracingTest } from '../../../../utils/helpers';
4+
import { envelopeUrlRegex, shouldSkipTracingTest } from '../../../../utils/helpers';
55

66
sentryTest(
77
'there should be no span created for xhr requests with no active span',
@@ -14,7 +14,7 @@ sentryTest(
1414

1515
let requestCount = 0;
1616
page.on('request', request => {
17-
expect(request.url()).not.toContain(url);
17+
expect(envelopeUrlRegex.test(request.url())).toBe(false);
1818
requestCount++;
1919
});
2020

0 commit comments

Comments
 (0)