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 screenshots in maven #972

Merged
merged 4 commits into from
Sep 8, 2019
Merged

Fix screenshots in maven #972

merged 4 commits into from
Sep 8, 2019

Conversation

asolntsev
Copy link
Member

Fixes #234

Checklist

  • Checkstyle and unit tests pass locally with my changes by running gradle check chrome htmlunit command
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

starting from some version, Maven uses `e.getClass()+e.getMessage()` instead of `e.toString()`. But Selenide added screenshot and timeout in `UIAssertionError.toString()`.

Had to refactor many unit-tests that heavily depended on format of error message.
@asolntsev asolntsev self-assigned this Sep 7, 2019
Copy link
Collaborator

@rosolko rosolko left a comment

Choose a reason for hiding this comment

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

Awesome!

@asolntsev asolntsev merged commit 6b07660 into master Sep 8, 2019
@asolntsev asolntsev deleted the fix-screenshots-in-maven branch September 8, 2019 20:48
@asolntsev
Copy link
Member Author

Thanks! Releasing Selenide 5.3.1

asolntsev added a commit that referenced this pull request Oct 13, 2019
instead of long message `com.codeborne.selenide.ex.ElementNotFound: Element not found {#customerDashboardButton}`,
just use shorter message `Element not found {#customerDashboardButton}`

* it improves changes done in PR #972 for issue #234
* Maven users with latest surefire plugin will still see the long error message
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Selenide creates a screenshot however does not report it in exception log
2 participants