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 test-env mock for EuiFocusTrap #3930

Merged
merged 2 commits into from
Aug 17, 2020

Conversation

thompsongl
Copy link
Contributor

@thompsongl thompsongl commented Aug 17, 2020

Summary

The most recent EUI upgrade in Kibana increased Jest test flakiness and ultimately exposed recently changed EuiFocusTrap dependencies to significantly lengthen unit test run times (leading to timeout-based failures).

This PR introduces a testenv mock for EuiFocusTrap which will prevent library internals from unnecessarily interfering with downstream unit tests.

The effective result in Kibana is up to 85% faster runs in affected unit tests, 0 behavioral changes, and surprisingly few snapshot updates.

Checklist

- [ ] Check against all themes for compatibility in both light and dark modes
- [ ] Checked in mobile
- [ ] Checked in Chrome, Safari, Edge, and Firefox
- [ ] Props have proper autodocs
- [ ] Added documentation
- [ ] Checked Code Sandbox works for the any docs examples
- [ ] Added or updated jest tests
- [ ] Checked for breaking changes and labeled appropriately
- [ ] Checked for accessibility including keyboard-only and screenreader modes

  • A changelog entry exists and is marked appropriately

@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_3930/

Copy link
Contributor

@chandlerprall chandlerprall left a comment

Choose a reason for hiding this comment

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

🦑 thanks for putting this together & testing in Kibana!

@thompsongl thompsongl merged commit 174d1aa into elastic:master Aug 17, 2020
nyurik pushed a commit that referenced this pull request Aug 18, 2020
* add testenv mock for euifocustrap

* CL
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.

3 participants