Skip to content

Commit d6561b8

Browse files
authored
test(integration): Fix backgroundtab-pageload flaky test (#7442)
1 parent 45f5c21 commit d6561b8

File tree

1 file changed

+1
-4
lines changed
  • packages/integration-tests/suites/tracing/browsertracing/backgroundtab-pageload

1 file changed

+1
-4
lines changed

packages/integration-tests/suites/tracing/browsertracing/backgroundtab-pageload/test.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,9 @@ sentryTest('should finish pageload transaction when the page goes background', a
88
const url = await getLocalTestPath({ testDir: __dirname });
99

1010
await page.goto(url);
11-
12-
const pageloadTransactionPromise = getFirstSentryEnvelopeRequest<Event>(page);
13-
1411
await page.click('#go-background');
1512

16-
const pageloadTransaction = await pageloadTransactionPromise;
13+
const pageloadTransaction = await getFirstSentryEnvelopeRequest<Event>(page);
1714

1815
expect(pageloadTransaction.contexts?.trace?.op).toBe('pageload');
1916
expect(pageloadTransaction.contexts?.trace?.status).toBe('cancelled');

0 commit comments

Comments
 (0)