-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Ensure we fail tests when a javascript exception happens #9539
Ensure we fail tests when a javascript exception happens #9539
Conversation
1d0e050
to
d8f7e7a
Compare
Oo it looks like #8275 regressed the fact that integration tests should treat any javascript exception as a failure |
d8f7e7a
to
844b2b3
Compare
@martinpitt How do we get tests to fail when an exception happens. I added an exception and it needs to cause the integration testing to fail. |
test/verify/check-menu
Outdated
|
||
b.switch_to_top() | ||
b.wait_visible("#navbar-oops") | ||
b.wait_visible("#navbar-oops") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It may be that we remove these lines, if it turns out that in order to catch errors via the CDP driver, we have to disable the Ooops error handling in Cockpit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just tested this, and this isn't necessary. I posted #9639 that puts back failling on unhandled exceptions, and the check-menu test here now picks this up.
844b2b3
to
8564c3e
Compare
8564c3e
to
7c8001c
Compare
@stefwalter #9639 landed. The playground page and explicit test still sounds useful, I suppose you want to salvage that? |
7c8001c
to
5f2f001
Compare
I rebased, made the test a bit nicer and more robust, and fixed some tab damage. |
When PhantomJS was used we used to fail integration testing on every javascript exception. That is no longer the case with headless-chromium.