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

Fix stack traces handling when calling user.* methods #290

Merged
merged 3 commits into from
Nov 9, 2021

Conversation

calebeby
Copy link
Member

@calebeby calebeby commented Nov 4, 2021

This fixes a bug that Gerardo and I found while implementing #248:
In #216, there is a regression in stack traces when an error is thrown from user.* methods.

For example, if you try to click an element that is invisible:

await user.click(invisibleButton)

Then the correct/ideal behavior would be to show an error message with that line as the first line of the stack.
Since the regression in #216, the stack trace is missing entirely.

This PR adds it back, and adds a test to make sure that it stays there.

@calebeby
Copy link
Member Author

calebeby commented Nov 4, 2021

Uh oh my solution works locally but not in CI 🤔

@calebeby calebeby marked this pull request as draft November 4, 2021 19:30
@calebeby calebeby marked this pull request as ready for review November 4, 2021 20:39
Copy link
Contributor

@Paul-Hebert Paul-Hebert left a comment

Choose a reason for hiding this comment

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

LGTM!

@calebeby calebeby merged commit e9808b5 into main Nov 9, 2021
@calebeby calebeby deleted the fix-stack-frames-for-user-api branch November 9, 2021 22:25
@github-actions github-actions bot mentioned this pull request Nov 9, 2021
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