Skip to content

Add test-env mock for EuiFocusTrap#3930

Merged
thompsongl merged 2 commits intoelastic:masterfrom
thompsongl:testenv/euifocustrap
Aug 17, 2020
Merged

Add test-env mock for EuiFocusTrap#3930
thompsongl merged 2 commits intoelastic:masterfrom
thompsongl:testenv/euifocustrap

Conversation

@thompsongl
Copy link
Copy Markdown
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
Copy Markdown

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

Copy link
Copy Markdown
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