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
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
canvas chore(NA): remove mocha junit ci integrations (#88129) 2021-01-15 21:17:25 +00:00
case
cloud
code
console_extensions
cross_cluster_replication
dashboard_enhanced
dashboard_mode
data_enhanced Fix log msg (#88370) 2021-01-17 00:05:06 +02:00
discover_enhanced
drilldowns
embeddable_enhanced
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
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
graph [dev] Replace sass-lint with stylelint (#86177) 2021-01-15 11:52:29 -06:00
grokdebugger
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
licensing
lists
logstash
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
rollup
runtime_fields
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
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
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
watcher [Watcher] Update skipped jest tests (#88225) 2021-01-14 09:00:18 -05:00
xpack_legacy