Skip to content

Commit e0b6437

Browse files
committed
test: Remove getLocalTestPath
Just use `getLocalTestUrl` everywhere, which is actually closer to reality.
1 parent 12d5acf commit e0b6437

File tree

199 files changed

+730
-734
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

199 files changed

+730
-734
lines changed

dev-packages/browser-integration-tests/suites/integrations/ContextLines/inline/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { envelopeRequestParser, waitForErrorRequestOnUrl } from '../../../../uti
55

66
sentryTest(
77
'should add source context lines around stack frames from errors in Html inline JS',
8-
async ({ getLocalTestPath, page, browserName }) => {
8+
async ({ getLocalTestUrl, page, browserName }) => {
99
if (browserName === 'webkit') {
1010
// The error we're throwing in this test is thrown as "Script error." in Webkit.
1111
// We filter "Script error." out by default in `InboundFilters`.
@@ -15,7 +15,7 @@ sentryTest(
1515
sentryTest.skip();
1616
}
1717

18-
const url = await getLocalTestPath({ testDir: __dirname });
18+
const url = await getLocalTestUrl({ testDir: __dirname });
1919

2020
const eventReqPromise = waitForErrorRequestOnUrl(page, url);
2121

dev-packages/browser-integration-tests/suites/integrations/ContextLines/noAddedLines/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { expect } from '@playwright/test';
33
import { sentryTest } from '../../../../utils/fixtures';
44
import { envelopeRequestParser, waitForErrorRequestOnUrl } from '../../../../utils/helpers';
55

6-
sentryTest('should not add source context lines to errors from script files', async ({ getLocalTestPath, page }) => {
7-
const url = await getLocalTestPath({ testDir: __dirname });
6+
sentryTest('should not add source context lines to errors from script files', async ({ getLocalTestUrl, page }) => {
7+
const url = await getLocalTestUrl({ testDir: __dirname });
88

99
const eventReqPromise = waitForErrorRequestOnUrl(page, url);
1010

dev-packages/browser-integration-tests/suites/integrations/ContextLines/scriptTag/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { envelopeRequestParser, waitForErrorRequestOnUrl } from '../../../../uti
55

66
sentryTest(
77
'should add source context lines around stack frames from errors in Html script tags',
8-
async ({ getLocalTestPath, page, browserName }) => {
8+
async ({ getLocalTestUrl, page, browserName }) => {
99
if (browserName === 'webkit') {
1010
// The error we're throwing in this test is thrown as "Script error." in Webkit.
1111
// We filter "Script error." out by default in `InboundFilters`.
@@ -15,7 +15,7 @@ sentryTest(
1515
sentryTest.skip();
1616
}
1717

18-
const url = await getLocalTestPath({ testDir: __dirname });
18+
const url = await getLocalTestUrl({ testDir: __dirname });
1919

2020
const eventReqPromise = waitForErrorRequestOnUrl(page, url);
2121

dev-packages/browser-integration-tests/suites/integrations/httpclient/axios/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import { getFirstSentryEnvelopeRequest } from '../../../../utils/helpers';
66

77
sentryTest(
88
'should assign request and response context from a failed 500 XHR request',
9-
async ({ getLocalTestPath, page }) => {
10-
const url = await getLocalTestPath({ testDir: __dirname });
9+
async ({ getLocalTestUrl, page }) => {
10+
const url = await getLocalTestUrl({ testDir: __dirname });
1111

1212
await page.route('**/foo', route => {
1313
return route.fulfill({

dev-packages/browser-integration-tests/suites/integrations/httpclient/fetch/simple/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import { getFirstSentryEnvelopeRequest } from '../../../../../utils/helpers';
88
// https://github.com/microsoft/playwright/issues/10376
99
sentryTest(
1010
'should assign request and response context from a failed 500 fetch request',
11-
async ({ getLocalTestPath, page }) => {
12-
const url = await getLocalTestPath({ testDir: __dirname });
11+
async ({ getLocalTestUrl, page }) => {
12+
const url = await getLocalTestUrl({ testDir: __dirname });
1313

1414
await page.route('**/foo', route => {
1515
return route.fulfill({

dev-packages/browser-integration-tests/suites/integrations/httpclient/fetch/withRequest/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import type { Event } from '@sentry/types';
44
import { sentryTest } from '../../../../../utils/fixtures';
55
import { getFirstSentryEnvelopeRequest } from '../../../../../utils/helpers';
66

7-
sentryTest('works with a Request passed in', async ({ getLocalTestPath, page }) => {
8-
const url = await getLocalTestPath({ testDir: __dirname });
7+
sentryTest('works with a Request passed in', async ({ getLocalTestUrl, page }) => {
8+
const url = await getLocalTestUrl({ testDir: __dirname });
99

1010
await page.route('**/foo', route => {
1111
return route.fulfill({

dev-packages/browser-integration-tests/suites/integrations/httpclient/fetch/withRequestAndBodyAndOptions/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import { getFirstSentryEnvelopeRequest } from '../../../../../utils/helpers';
66

77
sentryTest(
88
'works with a Request (with body) & options passed in - handling used body',
9-
async ({ getLocalTestPath, page }) => {
10-
const url = await getLocalTestPath({ testDir: __dirname });
9+
async ({ getLocalTestUrl, page }) => {
10+
const url = await getLocalTestUrl({ testDir: __dirname });
1111

1212
await page.route('**/foo', route => {
1313
return route.fulfill({

dev-packages/browser-integration-tests/suites/integrations/httpclient/fetch/withRequestAndOptions/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import type { Event } from '@sentry/types';
44
import { sentryTest } from '../../../../../utils/fixtures';
55
import { getFirstSentryEnvelopeRequest } from '../../../../../utils/helpers';
66

7-
sentryTest('works with a Request (without body) & options passed in', async ({ getLocalTestPath, page }) => {
8-
const url = await getLocalTestPath({ testDir: __dirname });
7+
sentryTest('works with a Request (without body) & options passed in', async ({ getLocalTestUrl, page }) => {
8+
const url = await getLocalTestUrl({ testDir: __dirname });
99

1010
await page.route('**/foo', route => {
1111
return route.fulfill({

dev-packages/browser-integration-tests/suites/integrations/httpclient/httpClientIntegration/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import type { Event } from '@sentry/types';
44
import { sentryTest } from '../../../../utils/fixtures';
55
import { getFirstSentryEnvelopeRequest } from '../../../../utils/helpers';
66

7-
sentryTest('works with httpClientIntegration', async ({ getLocalTestPath, page }) => {
8-
const url = await getLocalTestPath({ testDir: __dirname });
7+
sentryTest('works with httpClientIntegration', async ({ getLocalTestUrl, page }) => {
8+
const url = await getLocalTestUrl({ testDir: __dirname });
99

1010
await page.route('**/foo', route => {
1111
return route.fulfill({

dev-packages/browser-integration-tests/suites/integrations/httpclient/xhr/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import { getFirstSentryEnvelopeRequest } from '../../../../utils/helpers';
66

77
sentryTest(
88
'should assign request and response context from a failed 500 XHR request',
9-
async ({ getLocalTestPath, page }) => {
10-
const url = await getLocalTestPath({ testDir: __dirname });
9+
async ({ getLocalTestUrl, page }) => {
10+
const url = await getLocalTestUrl({ testDir: __dirname });
1111

1212
await page.route('**/foo', route => {
1313
return route.fulfill({

dev-packages/browser-integration-tests/suites/public-api/addBreadcrumb/empty_obj/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import { getFirstSentryEnvelopeRequest } from '../../../../utils/helpers';
66

77
sentryTest(
88
'should add an empty breadcrumb initialized with a timestamp, when an empty object is given',
9-
async ({ getLocalTestPath, page }) => {
10-
const url = await getLocalTestPath({ testDir: __dirname });
9+
async ({ getLocalTestUrl, page }) => {
10+
const url = await getLocalTestUrl({ testDir: __dirname });
1111

1212
const eventData = await getFirstSentryEnvelopeRequest<Event>(page, url);
1313

dev-packages/browser-integration-tests/suites/public-api/addBreadcrumb/multiple_breadcrumbs/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import type { Event } from '@sentry/types';
44
import { sentryTest } from '../../../../utils/fixtures';
55
import { getFirstSentryEnvelopeRequest } from '../../../../utils/helpers';
66

7-
sentryTest('should add multiple breadcrumbs', async ({ getLocalTestPath, page }) => {
8-
const url = await getLocalTestPath({ testDir: __dirname });
7+
sentryTest('should add multiple breadcrumbs', async ({ getLocalTestUrl, page }) => {
8+
const url = await getLocalTestUrl({ testDir: __dirname });
99

1010
const eventData = await getFirstSentryEnvelopeRequest<Event>(page, url);
1111

dev-packages/browser-integration-tests/suites/public-api/addBreadcrumb/simple_breadcrumb/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import type { Event } from '@sentry/types';
44
import { sentryTest } from '../../../../utils/fixtures';
55
import { getFirstSentryEnvelopeRequest } from '../../../../utils/helpers';
66

7-
sentryTest('should add a simple breadcrumb', async ({ getLocalTestPath, page }) => {
8-
const url = await getLocalTestPath({ testDir: __dirname });
7+
sentryTest('should add a simple breadcrumb', async ({ getLocalTestUrl, page }) => {
8+
const url = await getLocalTestUrl({ testDir: __dirname });
99

1010
const eventData = await getFirstSentryEnvelopeRequest<Event>(page, url);
1111

dev-packages/browser-integration-tests/suites/public-api/addBreadcrumb/undefined_arg/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import { getFirstSentryEnvelopeRequest } from '../../../../utils/helpers';
66

77
sentryTest(
88
'should add an empty breadcrumb initialized with a timestamp, when no argument is given',
9-
async ({ getLocalTestPath, page }) => {
10-
const url = await getLocalTestPath({ testDir: __dirname });
9+
async ({ getLocalTestUrl, page }) => {
10+
const url = await getLocalTestUrl({ testDir: __dirname });
1111

1212
const eventData = await getFirstSentryEnvelopeRequest<Event>(page, url);
1313

dev-packages/browser-integration-tests/suites/public-api/captureException/classInstance/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import type { Event } from '@sentry/types';
44
import { sentryTest } from '../../../../utils/fixtures';
55
import { getFirstSentryEnvelopeRequest } from '../../../../utils/helpers';
66

7-
sentryTest('should capture an POJO', async ({ getLocalTestPath, page }) => {
8-
const url = await getLocalTestPath({ testDir: __dirname });
7+
sentryTest('should capture an POJO', async ({ getLocalTestUrl, page }) => {
8+
const url = await getLocalTestUrl({ testDir: __dirname });
99

1010
const eventData = await getFirstSentryEnvelopeRequest<Event>(page, url);
1111

dev-packages/browser-integration-tests/suites/public-api/captureException/emptyObj/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import type { Event } from '@sentry/types';
44
import { sentryTest } from '../../../../utils/fixtures';
55
import { getFirstSentryEnvelopeRequest } from '../../../../utils/helpers';
66

7-
sentryTest('should capture an empty object', async ({ getLocalTestPath, page }) => {
8-
const url = await getLocalTestPath({ testDir: __dirname });
7+
sentryTest('should capture an empty object', async ({ getLocalTestUrl, page }) => {
8+
const url = await getLocalTestUrl({ testDir: __dirname });
99

1010
const eventData = await getFirstSentryEnvelopeRequest<Event>(page, url);
1111

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
window.addEventListener('error', function (event) {
2-
Sentry.captureException(event);
3-
});
4-
5-
window.thisDoesNotExist();
1+
Sentry.captureException(new ErrorEvent('something', { message: 'test error' }));

dev-packages/browser-integration-tests/suites/public-api/captureException/errorEvent/test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ import type { Event } from '@sentry/types';
44
import { sentryTest } from '../../../../utils/fixtures';
55
import { getFirstSentryEnvelopeRequest } from '../../../../utils/helpers';
66

7-
sentryTest('should capture an ErrorEvent', async ({ getLocalTestPath, page }) => {
8-
const url = await getLocalTestPath({ testDir: __dirname });
7+
sentryTest('should capture an ErrorEvent', async ({ getLocalTestUrl, page }) => {
8+
const url = await getLocalTestUrl({ testDir: __dirname });
99

1010
const eventData = await getFirstSentryEnvelopeRequest<Event>(page, url);
1111

1212
expect(eventData.exception?.values).toHaveLength(1);
1313
expect(eventData.exception?.values?.[0]).toMatchObject({
1414
type: 'ErrorEvent',
15-
value: 'Event `ErrorEvent` captured as exception with message `Script error.`',
15+
value: 'Event `ErrorEvent` captured as exception with message `test error`',
1616
mechanism: {
1717
type: 'generic',
1818
handled: true,

dev-packages/browser-integration-tests/suites/public-api/captureException/event/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import type { Event } from '@sentry/types';
44
import { sentryTest } from '../../../../utils/fixtures';
55
import { getFirstSentryEnvelopeRequest } from '../../../../utils/helpers';
66

7-
sentryTest('should capture an Event', async ({ getLocalTestPath, page }) => {
8-
const url = await getLocalTestPath({ testDir: __dirname });
7+
sentryTest('should capture an Event', async ({ getLocalTestUrl, page }) => {
8+
const url = await getLocalTestUrl({ testDir: __dirname });
99

1010
const eventData = await getFirstSentryEnvelopeRequest<Event>(page, url);
1111

dev-packages/browser-integration-tests/suites/public-api/captureException/eventBreadcrumbs/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import { getMultipleSentryEnvelopeRequests } from '../../../../utils/helpers';
66

77
sentryTest(
88
'should capture recorded transactions as breadcrumbs for the following event sent',
9-
async ({ getLocalTestPath, page }) => {
10-
const url = await getLocalTestPath({ testDir: __dirname });
9+
async ({ getLocalTestUrl, page }) => {
10+
const url = await getLocalTestUrl({ testDir: __dirname });
1111

1212
const events = await getMultipleSentryEnvelopeRequests<Event>(page, 2, { url });
1313

dev-packages/browser-integration-tests/suites/public-api/captureException/linkedErrors/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import type { Event } from '@sentry/types';
44
import { sentryTest } from '../../../../utils/fixtures';
55
import { getFirstSentryEnvelopeRequest } from '../../../../utils/helpers';
66

7-
sentryTest('should capture a linked error with messages', async ({ getLocalTestPath, page }) => {
8-
const url = await getLocalTestPath({ testDir: __dirname });
7+
sentryTest('should capture a linked error with messages', async ({ getLocalTestUrl, page }) => {
8+
const url = await getLocalTestUrl({ testDir: __dirname });
99

1010
const eventData = await getFirstSentryEnvelopeRequest<Event>(page, url);
1111

dev-packages/browser-integration-tests/suites/public-api/captureException/multipleErrorsDifferentStacktrace/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import type { Event } from '@sentry/types';
44
import { sentryTest } from '../../../../utils/fixtures';
55
import { getMultipleSentryEnvelopeRequests } from '../../../../utils/helpers';
66

7-
sentryTest('should not reject back-to-back errors with different stack traces', async ({ getLocalTestPath, page }) => {
8-
const url = await getLocalTestPath({ testDir: __dirname });
7+
sentryTest('should not reject back-to-back errors with different stack traces', async ({ getLocalTestUrl, page }) => {
8+
const url = await getLocalTestUrl({ testDir: __dirname });
99

1010
const eventData = await getMultipleSentryEnvelopeRequests<Event>(page, 3, { url });
1111

dev-packages/browser-integration-tests/suites/public-api/captureException/multipleErrorsSameStacktrace/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import type { Event } from '@sentry/types';
44
import { sentryTest } from '../../../../utils/fixtures';
55
import { getMultipleSentryEnvelopeRequests } from '../../../../utils/helpers';
66

7-
sentryTest('should reject duplicate, back-to-back errors from captureException', async ({ getLocalTestPath, page }) => {
8-
const url = await getLocalTestPath({ testDir: __dirname });
7+
sentryTest('should reject duplicate, back-to-back errors from captureException', async ({ getLocalTestUrl, page }) => {
8+
const url = await getLocalTestUrl({ testDir: __dirname });
99

1010
const eventData = await getMultipleSentryEnvelopeRequests<Event>(page, 7, { url });
1111

dev-packages/browser-integration-tests/suites/public-api/captureException/plainObject/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import type { Event } from '@sentry/types';
44
import { sentryTest } from '../../../../utils/fixtures';
55
import { getFirstSentryEnvelopeRequest } from '../../../../utils/helpers';
66

7-
sentryTest('should capture an class instance', async ({ getLocalTestPath, page }) => {
8-
const url = await getLocalTestPath({ testDir: __dirname });
7+
sentryTest('should capture an class instance', async ({ getLocalTestUrl, page }) => {
8+
const url = await getLocalTestUrl({ testDir: __dirname });
99

1010
const eventData = await getFirstSentryEnvelopeRequest<Event>(page, url);
1111

dev-packages/browser-integration-tests/suites/public-api/captureException/simpleError/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import type { Event } from '@sentry/types';
44
import { sentryTest } from '../../../../utils/fixtures';
55
import { getFirstSentryEnvelopeRequest } from '../../../../utils/helpers';
66

7-
sentryTest('should capture a simple error with message', async ({ getLocalTestPath, page }) => {
8-
const url = await getLocalTestPath({ testDir: __dirname });
7+
sentryTest('should capture a simple error with message', async ({ getLocalTestUrl, page }) => {
8+
const url = await getLocalTestUrl({ testDir: __dirname });
99

1010
const eventData = await getFirstSentryEnvelopeRequest<Event>(page, url);
1111

dev-packages/browser-integration-tests/suites/public-api/captureException/transactionBreadcrumbs/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import { getMultipleSentryEnvelopeRequests } from '../../../../utils/helpers';
66

77
sentryTest(
88
'should capture recorded transactions as breadcrumbs for the following event sent',
9-
async ({ getLocalTestPath, page }) => {
10-
const url = await getLocalTestPath({ testDir: __dirname });
9+
async ({ getLocalTestUrl, page }) => {
10+
const url = await getLocalTestUrl({ testDir: __dirname });
1111

1212
const events = await getMultipleSentryEnvelopeRequests<Event>(page, 2, { url });
1313

dev-packages/browser-integration-tests/suites/public-api/captureException/undefinedArg/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import type { Event } from '@sentry/types';
44
import { sentryTest } from '../../../../utils/fixtures';
55
import { getFirstSentryEnvelopeRequest } from '../../../../utils/helpers';
66

7-
sentryTest('should capture an undefined error when no arguments are provided', async ({ getLocalTestPath, page }) => {
8-
const url = await getLocalTestPath({ testDir: __dirname });
7+
sentryTest('should capture an undefined error when no arguments are provided', async ({ getLocalTestUrl, page }) => {
8+
const url = await getLocalTestUrl({ testDir: __dirname });
99

1010
const eventData = await getFirstSentryEnvelopeRequest<Event>(page, url);
1111

dev-packages/browser-integration-tests/suites/public-api/captureMessage/multipleMessageAttachStacktrace/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import { getMultipleSentryEnvelopeRequests } from '../../../../utils/helpers';
66

77
sentryTest(
88
'should reject duplicate, back-to-back messages from captureMessage when it has stacktrace',
9-
async ({ getLocalTestPath, page }) => {
10-
const url = await getLocalTestPath({ testDir: __dirname });
9+
async ({ getLocalTestUrl, page }) => {
10+
const url = await getLocalTestUrl({ testDir: __dirname });
1111

1212
const eventData = await getMultipleSentryEnvelopeRequests<Event>(page, 5, { url });
1313

dev-packages/browser-integration-tests/suites/public-api/captureMessage/parameterized_message/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import type { Event } from '@sentry/types';
44
import { sentryTest } from '../../../../utils/fixtures';
55
import { getFirstSentryEnvelopeRequest } from '../../../../utils/helpers';
66

7-
sentryTest('should capture a parameterized representation of the message', async ({ getLocalTestPath, page }) => {
8-
const url = await getLocalTestPath({ testDir: __dirname });
7+
sentryTest('should capture a parameterized representation of the message', async ({ getLocalTestUrl, page }) => {
8+
const url = await getLocalTestUrl({ testDir: __dirname });
99

1010
const eventData = await getFirstSentryEnvelopeRequest<Event>(page, url);
1111

dev-packages/browser-integration-tests/suites/public-api/captureMessage/simple_message/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import type { Event } from '@sentry/types';
44
import { sentryTest } from '../../../../utils/fixtures';
55
import { getFirstSentryEnvelopeRequest } from '../../../../utils/helpers';
66

7-
sentryTest('should capture a simple message string', async ({ getLocalTestPath, page }) => {
8-
const url = await getLocalTestPath({ testDir: __dirname });
7+
sentryTest('should capture a simple message string', async ({ getLocalTestUrl, page }) => {
8+
const url = await getLocalTestUrl({ testDir: __dirname });
99

1010
const eventData = await getFirstSentryEnvelopeRequest<Event>(page, url);
1111

dev-packages/browser-integration-tests/suites/public-api/captureMessage/with_level/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import type { Event } from '@sentry/types';
44
import { sentryTest } from '../../../../utils/fixtures';
55
import { getMultipleSentryEnvelopeRequests } from '../../../../utils/helpers';
66

7-
sentryTest('should capture with different severity levels', async ({ getLocalTestPath, page }) => {
8-
const url = await getLocalTestPath({ testDir: __dirname });
7+
sentryTest('should capture with different severity levels', async ({ getLocalTestUrl, page }) => {
8+
const url = await getLocalTestUrl({ testDir: __dirname });
99

1010
const events = await getMultipleSentryEnvelopeRequests<Event>(page, 6, { url });
1111

dev-packages/browser-integration-tests/suites/public-api/captureUserFeedback/simple_feedback/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import type { UserFeedback } from '@sentry/types';
44
import { sentryTest } from '../../../../utils/fixtures';
55
import { getFirstSentryEnvelopeRequest } from '../../../../utils/helpers';
66

7-
sentryTest('should capture simple user feedback', async ({ getLocalTestPath, page }) => {
8-
const url = await getLocalTestPath({ testDir: __dirname });
7+
sentryTest('should capture simple user feedback', async ({ getLocalTestUrl, page }) => {
8+
const url = await getLocalTestUrl({ testDir: __dirname });
99

1010
const eventData = await getFirstSentryEnvelopeRequest<UserFeedback>(page, url);
1111

dev-packages/browser-integration-tests/suites/public-api/captureUserFeedback/withCaptureException/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import type { Event, UserFeedback } from '@sentry/types';
44
import { sentryTest } from '../../../../utils/fixtures';
55
import { getMultipleSentryEnvelopeRequests } from '../../../../utils/helpers';
66

7-
sentryTest('capture user feedback when captureException is called', async ({ getLocalTestPath, page }) => {
8-
const url = await getLocalTestPath({ testDir: __dirname });
7+
sentryTest('capture user feedback when captureException is called', async ({ getLocalTestUrl, page }) => {
8+
const url = await getLocalTestUrl({ testDir: __dirname });
99

1010
const data = (await getMultipleSentryEnvelopeRequests(page, 2, { url })) as (Event | UserFeedback)[];
1111

dev-packages/browser-integration-tests/suites/public-api/captureUserFeedback/withCaptureMessage/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import type { Event, UserFeedback } from '@sentry/types';
44
import { sentryTest } from '../../../../utils/fixtures';
55
import { getMultipleSentryEnvelopeRequests } from '../../../../utils/helpers';
66

7-
sentryTest('capture user feedback when captureMessage is called', async ({ getLocalTestPath, page }) => {
8-
const url = await getLocalTestPath({ testDir: __dirname });
7+
sentryTest('capture user feedback when captureMessage is called', async ({ getLocalTestUrl, page }) => {
8+
const url = await getLocalTestUrl({ testDir: __dirname });
99

1010
const data = (await getMultipleSentryEnvelopeRequests(page, 2, { url })) as (Event | UserFeedback)[];
1111

0 commit comments

Comments
 (0)