Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: align with upstream exception handling #2975

Merged
merged 2 commits into from
Aug 1, 2024

Conversation

mxschmitt
Copy link
Member

Assert.Equals("error message", exception.Message);
StringAssert.Contains("functionOnStack", exception.StackTrace);
StringAssert.Contains("Error: error message", exception.Message);
StringAssert.Contains("functionOnStack", exception.Message);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't it be in exception.StackTrace ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't re-serialise the JS error into a .NET StackTrace property yet, I can try doing it tho, we only do message as of today.

src/Playwright.Tests/PageEvaluateTests.cs Outdated Show resolved Hide resolved
@mxschmitt mxschmitt merged commit 5651c72 into main Aug 1, 2024
13 of 15 checks passed
@mxschmitt mxschmitt deleted the align-exception-handling branch August 1, 2024 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants