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

Add example of testing for and handling js errors #2

Merged
merged 1 commit into from
Jun 12, 2017

Conversation

Cruikshanks
Copy link
Member

These changes were built more to enable me to test Quke's new functionality which allows users to specify whether PhantomJS should throw an error if a JavaScript error is encountered.

However it does also demonstrate how you can check for a certain exception within your test, and provide a page in the demo app with a JavaScript error to write your own tests against.

These changes were built more to enable me to test [Quke's new
functionality](DEFRA/quke#65) which allows users
to specify whether **PhantomJS** should throw an error if a JavaScript
error is encountered.

However it does also demonstrate how you can check for a certain
exception within your test, and provide a page in the demo app with a JavaScript error
to write your own tests against.
@Cruikshanks Cruikshanks added the enhancement New feature or request label Jun 12, 2017
@Cruikshanks Cruikshanks self-assigned this Jun 12, 2017
@Cruikshanks Cruikshanks merged commit 5ad0808 into master Jun 12, 2017
@Cruikshanks Cruikshanks deleted the feature/javascript-error-example branch June 12, 2017 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant