Skip to content

[Workplace Search] Add tests for Custom Source Display Settings#88547

Merged
scottybollinger merged 15 commits intoelastic:masterfrom
scottybollinger:scottybollinger/source-display-settings-tests
Jan 18, 2021
Merged

[Workplace Search] Add tests for Custom Source Display Settings#88547
scottybollinger merged 15 commits intoelastic:masterfrom
scottybollinger:scottybollinger/source-display-settings-tests

Conversation

@scottybollinger
Copy link
Copy Markdown
Contributor

@scottybollinger scottybollinger commented Jan 15, 2021

Summary

Adds unit tests for Custom Source Display Settings.

coverage

Checklist

Our code allows for an array but the type did not.
The linter was complaining when these were initially migrated, stating that a11y required all mouse events to have focus and blur events. This commit uses the hover events for those. EuiColorPicker was added in error and removing them does not disrupt the linter.
Also updates routes to use consistent syntax and remove the render prop
Since all this does is wrap the clearFlashMessages function, we can just call it directly. Also use the new clearFlashMessages helper instead of using FlashMessageLogic directly insideof toggleFieldEditorModal
Also adds ‘subtitleField’ that is needed in a future test
@scottybollinger scottybollinger added Feature:Plugins v8.0.0 release_note:skip Skip the PR/issue when compiling release notes backport:skip This PR does not require backporting labels Jan 15, 2021
@scottybollinger scottybollinger requested a review from a team January 15, 2021 23:30
@scottybollinger
Copy link
Copy Markdown
Contributor Author

@elasticmachine merge upstream

Copy link
Copy Markdown
Contributor

@yakhinvadim yakhinvadim left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@yakhinvadim
Copy link
Copy Markdown
Contributor

@elasticmachine merge upstream

@kibanamachine
Copy link
Copy Markdown
Contributor

💛 Build succeeded, but was flaky

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
enterpriseSearch 1.8MB 1.8MB +379.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@scottybollinger scottybollinger merged commit 33084df into elastic:master Jan 18, 2021
@scottybollinger scottybollinger deleted the scottybollinger/source-display-settings-tests branch January 18, 2021 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting Feature:Plugins release_note:skip Skip the PR/issue when compiling release notes v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants