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: restore getter error details #631

Merged
merged 2 commits into from
Jan 19, 2024

Conversation

ro0gr
Copy link
Collaborator

@ro0gr ro0gr commented Oct 31, 2023

#596 broke QUnit error messages so they now miss contextual error info like page object path and selector. This info only remained as a part of the console output.

Before:
Знімок екрана 2023-10-31 о 23 19 48

This happened cause #596 relied on the .toString() method of the Error to build the final error message. However, that's not how the error message is supposed to be displayed in UI.

Instead, we need the Error.message to be complete. Let's build it in the Error constructor then.

After:
Знімок екрана 2023-10-31 о 23 20 48

ro0gr added 2 commits January 18, 2024 09:42
(san650#596) broke QUnit error messages so they now miss contextual error
info like page object path and selector.

This happened cause san650#596 relied on the `.toString()` method of the Error
to build the final error message. However, that's not how QUnit is
displaying the error message. It just uses the `Error.message`.

So let's build the final message in the `Error` constructor.
@ro0gr ro0gr force-pushed the bugfix/missing-page-object-key-in-error branch from 4f72e1f to 24bdee2 Compare January 19, 2024 00:30
@ro0gr ro0gr merged commit 7d0a4b0 into san650:master Jan 19, 2024
14 checks passed
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.

1 participant