Skip to content

Commit

Permalink
Log the url when a session failed, so we can easily find the crash re…
Browse files Browse the repository at this point in the history
…port (#10545)
  • Loading branch information
Domiii authored May 29, 2024
1 parent e24e240 commit f591251
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/e2e-tests/helpers/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,16 @@ export async function waitForRecordingToFinishIndexing(page: Page): Promise<void
async () => {
const supportFormErrorDetails = await getSupportFormErrorDetails(page);
if (supportFormErrorDetails) {
throw new UnrecoverableError(`Session failed: ${supportFormErrorDetails}`);
throw new UnrecoverableError(
`Session failed "${supportFormErrorDetails}" (visiting ${page.url()})`
);
}

const expectedErrorDetails = await getExpectedErrorDetails(page);
if (expectedErrorDetails) {
throw new UnrecoverableError(`Session failed: ${expectedErrorDetails}`);
throw new UnrecoverableError(
`Session failed: "${expectedErrorDetails}" (visiting ${page.url()})`
);
}

if (await timelineCapsuleLocator.isVisible()) {
Expand Down

0 comments on commit f591251

Please sign in to comment.