Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mydea committed Feb 7, 2025
1 parent c5f4b18 commit 160780e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,11 @@ sentryTest('should add resource spans to pageload transaction', async ({ getLoca

const hasCdnBundle = (process.env.PW_BUNDLE || '').startsWith('bundle');

const expectedScripts = ['/init.bundle.js', '/subject.bundle.js', 'https://sentry-test-site.example/path/to/script.js'];
const expectedScripts = [
'/init.bundle.js',
'/subject.bundle.js',
'https://sentry-test-site.example/path/to/script.js',
];
if (hasCdnBundle) {
expectedScripts.unshift('/cdn.bundle.js');
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,19 @@ sentryTest(
await page.goto(url);

await sentryTest.step('fetch with POJO', () =>
assertRequests({ page, buttonSelector: '#fetchPojo', requestMatcher: 'http://sentry-test-site.example/fetch-pojo' }),
assertRequests({
page,
buttonSelector: '#fetchPojo',
requestMatcher: 'http://sentry-test-site.example/fetch-pojo',
}),
);

await sentryTest.step('fetch with array', () =>
assertRequests({ page, buttonSelector: '#fetchArray', requestMatcher: 'http://sentry-test-site.example/fetch-array' }),
assertRequests({
page,
buttonSelector: '#fetchArray',
requestMatcher: 'http://sentry-test-site.example/fetch-array',
}),
);

await sentryTest.step('fetch with Headers instance', () =>
Expand Down

0 comments on commit 160780e

Please sign in to comment.