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

Testing: Fail E2E tests when uncaught page error occurs #6713

Merged
merged 1 commit into from
May 29, 2018

Conversation

aduth
Copy link
Member

@aduth aduth commented May 11, 2018

This pull request seeks to enhance end-to-end tests to fail a test if any uncaught page errors occur during their execution.

Testing instructions:

Fortunately, there are no existing page failures in existing tests. You can introduce one by adding this to edit-post/index.js in your local branch:

setTimeout( () => {
	throw new Error( 'Oops!' );
}, 1 );

Then verify that the end-to-end tests fail:

npm run test-e2e

Related resources:

@aduth aduth added the [Type] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests. label May 11, 2018
Copy link
Member

@noisysocks noisysocks left a comment

Choose a reason for hiding this comment

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

Excellent!

@noisysocks noisysocks merged commit e17e56b into master May 29, 2018
@noisysocks noisysocks deleted the add/e2e-test-failure-uncaught-error branch May 29, 2018 02:25
@mtias mtias added this to the 3.0 milestone Jun 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants