Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,15 @@ sentryTest(
}

const url = await getLocalTestUrl({ testDir: __dirname, responseHeaders: { 'Document-Policy': 'js-profiling' } });
await page.goto(url);

const profileChunkEnvelopePromise = getMultipleSentryEnvelopeRequests<ProfileChunkEnvelope>(
const profileChunkEnvelopes = await getMultipleSentryEnvelopeRequests<ProfileChunkEnvelope>(
page,
1,
{ envelopeType: 'profile_chunk' },
{ url, envelopeType: 'profile_chunk', timeout: 5000 },
properFullEnvelopeRequestParser,
);

const profileChunkEnvelopeItem = (await profileChunkEnvelopePromise)[0][1][0];
const profileChunkEnvelopeItem = profileChunkEnvelopes[0][1][0];
const envelopeItemHeader = profileChunkEnvelopeItem[0];
const envelopeItemPayload = profileChunkEnvelopeItem[1];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ sentryTest(

const url = await getLocalTestUrl({ testDir: __dirname });

await page.goto(url);

const errorEventsPromise = getMultipleSentryEnvelopeRequests<Event>(page, 2);

await page.goto(url);

await runScriptInSandbox(page, {
content: `
function run() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ sentryTest(

const url = await getLocalTestUrl({ testDir: __dirname });

await page.goto(url);

const errorEventsPromise = getMultipleSentryEnvelopeRequests<Event>(page, 2);

await page.goto(url);

await runScriptInSandbox(page, {
content: `
throw new Error('Error during pageload');
Expand Down
Loading