kibana/x-pack/plugins
Scotty Bollinger 33084df3ad
[Workplace Search] Add tests for Custom Source Display Settings (#88547)
* Add type

Our code allows for an array but the type did not.

* Add exampleResult mock

* Add test-subj attrs

* Remove FIXMEs for linter errors

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.

* Add tests for components

* Add test for router

Also updates routes to use consistent syntax and remove the render prop

* Use helper instead of history.push

* Remove redundant resetDisplaySettingsState method

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

* Add tests for DisplaySettings container

* Fix a typo and associated tests

Also adds ‘subtitleField’ that is needed in a future test

* Add constants from PR to test

https://github.com/elastic/kibana/pull/88477

* Add tests for DisplaySettingsLogic

* Remove unused imports and use new mocks

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-18 11:28:37 -06:00
..
actions Bumped axios to 0.21.1 (#87776) 2021-01-13 19:41:31 +00:00
alerting_builtins
alerts Remove dependency between alerts and infra (#88342) 2021-01-15 08:44:28 -06:00
apm [APM] Explicitly set environment for cross-service links (#87481) 2021-01-15 22:34:54 +01:00
audit_trail
beats_management chore(NA): move beats_management plugin tests out of __tests__ folder (#87530) 2021-01-06 19:56:38 +00:00
canvas chore(NA): remove mocha junit ci integrations (#88129) 2021-01-15 21:17:25 +00:00
case [Security Solution][Case] Attach alerts to cases: Tests (#86305) 2021-01-11 17:44:35 +02:00
cloud
code
console_extensions [DX] move some ES UI plugins to TS project (#88050) 2021-01-13 21:58:34 +01:00
cross_cluster_replication
dashboard_enhanced Kibana app and presentation ts projects (#87639) 2021-01-12 17:33:07 +01:00
dashboard_mode
data_enhanced Fix log msg (#88370) 2021-01-17 00:05:06 +02:00
discover_enhanced Migrate most kibana app plugins to TS projects (#87636) 2021-01-13 17:15:41 +01:00
drilldowns Remove dynamic mapped types from UiActions (#87075) 2021-01-05 10:11:05 +01:00
embeddable_enhanced Migrate App services plugins to TS projects (#87294) 2021-01-07 09:30:30 +01:00
encrypted_saved_objects Move Spaces, Security and EncryptedSavedObjects plugins to separate TS projects (#88365) 2021-01-15 14:55:53 +01:00
enterprise_search [Workplace Search] Add tests for Custom Source Display Settings (#88547) 2021-01-18 11:28:37 -06:00
event_log [Alerting] Migrate Event Log plugin to TS project references (#81557) 2021-01-15 19:07:45 -08:00
features [Search][Sessions] Rename Background Sessions to Search Sessions (#87500) 2021-01-07 17:28:27 +02:00
file_upload
fleet Don't retry if icon isn't in initial response (#88403) 2021-01-15 09:33:19 -05:00
global_search
global_search_bar
global_search_providers [DX] SavedObjectsManagement to TS project (#88240) 2021-01-13 22:23:06 +01:00
graph [dev] Replace sass-lint with stylelint (#86177) 2021-01-15 11:52:29 -06:00
grokdebugger chore(NA): move grokdebugger plugin test fixtures out of __tests__ folder (#87765) 2021-01-08 16:23:55 +00:00
index_lifecycle_management [ILM] Absolute to relative time conversion (#87822) 2021-01-15 13:32:16 +01:00
index_management [dev] Replace sass-lint with stylelint (#86177) 2021-01-15 11:52:29 -06:00
infra [Logs UI] Add sorting capabilities to categories page (#88051) 2021-01-18 14:12:29 +00:00
ingest_manager
ingest_pipelines [dev] Replace sass-lint with stylelint (#86177) 2021-01-15 11:52:29 -06:00
lens [Lens] Clean full reference operation error state when switching to other operation (#87064) 2021-01-18 16:58:23 +01:00
license_management Use documentation link service for security links (#87409) 2021-01-12 08:40:10 -08:00
licensing Migrate App services plugins to TS projects (#87294) 2021-01-07 09:30:30 +01:00
lists [Security Solution] [Detections] Fix bug to allow lower privileged users to close alerts (#87761) 2021-01-12 21:16:06 -05:00
logstash [logstash] remove "upgrade" functionality now that .logstash is a system index (#87056) 2020-12-31 12:16:33 -07:00
maps [Maps] fix zooming while drawing shape filter logs errors in console (#88413) 2021-01-15 19:05:45 -07:00
maps_legacy_licensing
ml [dev] Replace sass-lint with stylelint (#86177) 2021-01-15 11:52:29 -06:00
monitoring [Monitoring] Change cloud messaging on no data page (#88375) 2021-01-15 13:43:27 -05:00
observability [dev] Replace sass-lint with stylelint (#86177) 2021-01-15 11:52:29 -06:00
painless_lab
remote_clusters [dev] Replace sass-lint with stylelint (#86177) 2021-01-15 11:52:29 -06:00
reporting chore(NA): move reporting plugin test fixtures out of __tests__ folder (#87888) 2021-01-12 02:44:07 +00:00
rollup Switches rollup usage collector's fetch es client to the new client (#86684) 2021-01-04 11:32:14 -07:00
runtime_fields revert runtime fields editor plugin (#88132) 2021-01-13 08:34:30 -06:00
saved_objects_tagging
searchprofiler [dev] Replace sass-lint with stylelint (#86177) 2021-01-15 11:52:29 -06:00
security Move Spaces, Security and EncryptedSavedObjects plugins to separate TS projects (#88365) 2021-01-15 14:55:53 +01:00
security_solution [Security Solutions][Detection Engine] Removes duplicate API calls (#88420) 2021-01-17 09:18:34 -07:00
snapshot_restore [dev] Replace sass-lint with stylelint (#86177) 2021-01-15 11:52:29 -06:00
spaces Move Spaces, Security and EncryptedSavedObjects plugins to separate TS projects (#88365) 2021-01-15 14:55:53 +01:00
stack_alerts Change some UI copy to reflect guidelines and feedback (#88215) 2021-01-14 14:13:03 -05:00
task_manager [Alerting] Shift polling interval by random amount when Task Manager experiences consistent claim version conflicts (#88020) 2021-01-12 23:34:07 +00:00
telemetry_collection_xpack
transform [dev] Replace sass-lint with stylelint (#86177) 2021-01-15 11:52:29 -06:00
translations [Monitoring] Change cloud messaging on no data page (#88375) 2021-01-15 13:43:27 -05:00
triggers_actions_ui Change some UI copy to reflect guidelines and feedback (#88215) 2021-01-14 14:13:03 -05:00
ui_actions_enhanced Migrate App services plugins to TS projects (#87294) 2021-01-07 09:30:30 +01:00
upgrade_assistant
uptime [Uptime] clear ping state when PingList component in unmounted (#88321) 2021-01-15 13:37:30 -05:00
vis_type_timeseries_enhanced Migrate most kibana app plugins to TS projects (#87636) 2021-01-13 17:15:41 +01:00
watcher [Watcher] Update skipped jest tests (#88225) 2021-01-14 09:00:18 -05:00
xpack_legacy