Skip to content
Merged
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 @@ -8,12 +8,9 @@ sentryTest('should finish pageload transaction when the page goes background', a
const url = await getLocalTestPath({ testDir: __dirname });

await page.goto(url);

const pageloadTransactionPromise = getFirstSentryEnvelopeRequest<Event>(page);

await page.click('#go-background');

const pageloadTransaction = await pageloadTransactionPromise;
const pageloadTransaction = await getFirstSentryEnvelopeRequest<Event>(page);

expect(pageloadTransaction.contexts?.trace?.op).toBe('pageload');
expect(pageloadTransaction.contexts?.trace?.status).toBe('cancelled');
Expand Down