Skip to content

Conversation

@kindsun
Copy link
Contributor

@kindsun kindsun commented Apr 13, 2020

Backports the following commits to 7.x:

* Get legacy maps into basic NP plugin form. Swap out legacy services for NP

* Pull service settings from injected vars. Return new instance of service settings from setup

* Use NP service settings in vega maps. Clean up legacy shim

* Use NP maps service in region maps. Clean up shim. Add exports to NP service

* Pull zoom precision out to separate module since it's dependent on config

* Update paths to point to NP resources

* More path updates, clean up, use IServiceSettings

* Remove dependency on legacy service settings. Add tile_map dependency ng-sanitize

* More path cleanup. Use zoomPrecision provided through plugin inteface

* Move getPrecision into contract-provided function since it depends on config

* Move tests to new service location, remove vis dir

* Update test paths. Move origin const declaration into public

* Clean up, fixes

* Fix type errors. General cleaning

* Inject toast service into map when needed

* Fix typo in regionmap config

* i18n fixes

* Update jest test path

* Fix karma tests

* i18n fixes

* Type updates. Add mapsLegacy to np karma mock

* Remove html sanitizer

* Fix vega test that depends on serviceSettings

* Revise xpack license handling to use NP serviceSettings. Remove angular bindings

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
@kindsun kindsun added the backport This PR is a backport of another PR label Apr 13, 2020
@kindsun
Copy link
Contributor Author

kindsun commented Apr 14, 2020

retest

@kindsun
Copy link
Contributor Author

kindsun commented Apr 14, 2020

@elasticmachine merge upstream

@kindsun
Copy link
Contributor Author

kindsun commented Apr 14, 2020

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💛 Build succeeded, but was flaky


Test Failures

Kibana Pipeline / kibana-oss-agent / Accessibility Tests.test/accessibility/apps/discover·ts.Discover should open context view on a doc

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has failed 3 times on tracked branches: https://github.com/elastic/kibana/issues/62497

[00:00:00]       │
[00:00:00]         └-: Discover
[00:00:00]           └-> "before all" hook
[00:00:00]           └-> "before all" hook
[00:00:00]             │ info [discover] Loading "mappings.json"
[00:00:00]             │ info [discover] Loading "data.json.gz"
[00:00:00]             │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1586887789763859183] [.kibana_1/WdJd0H1BSDaZGESwqrc_yA] deleting index
[00:00:00]             │ info [discover] Deleted existing index [".kibana_1"]
[00:00:00]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1586887789763859183] applying create index request using v1 templates []
[00:00:00]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1586887789763859183] [.kibana] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:00:00]             │ info [discover] Created index ".kibana"
[00:00:00]             │ debg [discover] ".kibana" settings {"index":{"number_of_replicas":"1","number_of_shards":"1"}}
[00:00:00]             │ info [discover] Indexed 2 docs into ".kibana"
[00:00:00]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1586887789763859183] [.kibana/vOhxd81iTtiy2Za1-beLjA] update_mapping [_doc]
[00:00:00]             │ debg Migrating saved objects
[00:00:00]             │ proc [kibana]   log   [18:30:41.492] [info][savedobjects-service] Creating index .kibana_2.
[00:00:00]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1586887789763859183] applying create index request using v1 templates []
[00:00:00]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1586887789763859183] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:00:00]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1586887789763859183] updating number_of_replicas to [0] for indices [.kibana_2]
[00:00:00]             │ proc [kibana]   log   [18:30:41.584] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:00:00]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1586887789763859183] applying create index request using v1 templates []
[00:00:00]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1586887789763859183] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:00:00]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1586887789763859183] updating number_of_replicas to [0] for indices [.kibana_1]
[00:00:00]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1586887789763859183] applying create index request using v1 templates []
[00:00:00]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1586887789763859183] [.tasks] creating index, cause [auto(task api)], templates [], shards [1]/[1], mappings [task]
[00:00:00]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1586887789763859183] updating number_of_replicas to [0] for indices [.tasks]
[00:00:00]             │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-16-tests-xl-1586887789763859183] 104 finished with response BulkByScrollResponse[took=84.4ms,timed_out=false,sliceId=null,updated=0,created=2,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:00:00]             │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1586887789763859183] [.kibana/vOhxd81iTtiy2Za1-beLjA] deleting index
[00:00:00]             │ proc [kibana]   log   [18:30:41.996] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:00:00]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1586887789763859183] [.kibana_2/6D3u9upYQdCA40xe0QoSCQ] update_mapping [_doc]
[00:00:00]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1586887789763859183] [.kibana_2/6D3u9upYQdCA40xe0QoSCQ] update_mapping [_doc]
[00:00:01]             │ proc [kibana]   log   [18:30:42.135] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:00:01]             │ proc [kibana]   log   [18:30:42.195] [info][savedobjects-service] Finished in 706ms.
[00:00:01]             │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC"}
[00:00:01]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1586887789763859183] [.kibana_2/6D3u9upYQdCA40xe0QoSCQ] update_mapping [_doc]
[00:00:02]             │ info [logstash_functional] Loading "mappings.json"
[00:00:02]             │ info [logstash_functional] Loading "data.json.gz"
[00:00:02]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1586887789763859183] applying create index request using v1 templates []
[00:00:02]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1586887789763859183] [logstash-2015.09.22] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:00:02]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1586887789763859183] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.22][0]]]).
[00:00:02]             │ info [logstash_functional] Created index "logstash-2015.09.22"
[00:00:02]             │ debg [logstash_functional] "logstash-2015.09.22" settings {"index":{"analysis":{"analyzer":{"url":{"max_token_length":"1000","tokenizer":"uax_url_email","type":"standard"}}},"number_of_replicas":"0","number_of_shards":"1"}}
[00:00:02]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1586887789763859183] applying create index request using v1 templates []
[00:00:02]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1586887789763859183] [logstash-2015.09.20] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:00:02]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1586887789763859183] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.20][0]]]).
[00:00:02]             │ info [logstash_functional] Created index "logstash-2015.09.20"
[00:00:02]             │ debg [logstash_functional] "logstash-2015.09.20" settings {"index":{"analysis":{"analyzer":{"url":{"max_token_length":"1000","tokenizer":"uax_url_email","type":"standard"}}},"number_of_replicas":"0","number_of_shards":"1"}}
[00:00:02]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1586887789763859183] applying create index request using v1 templates []
[00:00:02]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1586887789763859183] [logstash-2015.09.21] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:00:02]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1586887789763859183] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.21][0]]]).
[00:00:02]             │ info [logstash_functional] Created index "logstash-2015.09.21"
[00:00:02]             │ debg [logstash_functional] "logstash-2015.09.21" settings {"index":{"analysis":{"analyzer":{"url":{"max_token_length":"1000","tokenizer":"uax_url_email","type":"standard"}}},"number_of_replicas":"0","number_of_shards":"1"}}
[00:00:12]             │ info progress: 10231
[00:00:15]             │ info [logstash_functional] Indexed 4633 docs into "logstash-2015.09.22"
[00:00:15]             │ info [logstash_functional] Indexed 4757 docs into "logstash-2015.09.20"
[00:00:15]             │ info [logstash_functional] Indexed 4614 docs into "logstash-2015.09.21"
[00:00:15]             │ debg applying update to kibana config: {"defaultIndex":"logstash-*"}
[00:00:15]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1586887789763859183] [.kibana_2/6D3u9upYQdCA40xe0QoSCQ] update_mapping [_doc]
[00:00:16]             │ debg navigating to discover url: http://localhost:61131/app/kibana#/discover
[00:00:16]             │ debg navigate to: http://localhost:61131/app/kibana#/discover
[00:00:16]             │ debg browser[INFO] http://localhost:61131/app/kibana?_t=1586889057611#/discover 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:00:16]             │
[00:00:16]             │ debg browser[INFO] http://localhost:61131/bundles/app/kibana/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:16]             │ debg ... sleep(700) start
[00:00:17]             │ debg ... sleep(700) end
[00:00:17]             │ debg returned from get, calling refresh
[00:00:18]             │ debg browser[INFO] http://localhost:61131/app/kibana?_t=1586889057611#/discover 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:00:18]             │
[00:00:18]             │ debg browser[INFO] http://localhost:61131/bundles/app/kibana/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:18]             │ debg currentUrl = http://localhost:61131/app/kibana#/discover
[00:00:18]             │          appUrl = http://localhost:61131/app/kibana#/discover
[00:00:18]             │ debg TestSubjects.find(kibanaChrome)
[00:00:18]             │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:00:20]             │ debg browser[INFO] http://localhost:61131/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-04-14T18:31:01Z
[00:00:20]             │        Adding connection to http://localhost:61131/elasticsearch
[00:00:20]             │
[00:00:20]             │      "
[00:00:21]             │ debg TestSubjects.find(kibanaChrome)
[00:00:21]             │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=10000
[00:00:21]             │ debg ... sleep(501) start
[00:00:21]             │ debg ... sleep(501) end
[00:00:21]             │ debg in navigateTo url = http://localhost:61131/app/kibana#/discover
[00:00:21]             │ debg TestSubjects.exists(statusPageContainer)
[00:00:21]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:00:24]             │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:00:24]             │ debg Setting absolute range to Sep 19, 2015 @ 06:31:44.000 to Sep 23, 2015 @ 18:31:44.000
[00:00:24]             │ debg TestSubjects.exists(superDatePickerToggleQuickMenuButton)
[00:00:24]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerToggleQuickMenuButton"]') with timeout=20000
[00:00:24]             │ debg TestSubjects.exists(superDatePickerShowDatesButton)
[00:00:24]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerShowDatesButton"]') with timeout=2500
[00:00:24]             │ debg TestSubjects.click(superDatePickerShowDatesButton)
[00:00:24]             │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerShowDatesButton"]') with timeout=10000
[00:00:24]             │ debg Find.findByCssSelector('[data-test-subj="superDatePickerShowDatesButton"]') with timeout=10000
[00:00:24]             │ debg TestSubjects.exists(superDatePickerstartDatePopoverButton)
[00:00:24]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerstartDatePopoverButton"]') with timeout=2500
[00:00:25]             │ debg TestSubjects.click(superDatePickerendDatePopoverButton)
[00:00:25]             │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerendDatePopoverButton"]') with timeout=10000
[00:00:25]             │ debg Find.findByCssSelector('[data-test-subj="superDatePickerendDatePopoverButton"]') with timeout=10000
[00:00:25]             │ debg Find.findByCssSelector('div.euiPopover__panel-isOpen') with timeout=10000
[00:00:25]             │ debg TestSubjects.click(superDatePickerAbsoluteTab)
[00:00:25]             │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:00:25]             │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:00:25]             │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:00:25]             │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:00:25]             │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:00:25]             │ debg TestSubjects.setValue(superDatePickerAbsoluteDateInput, Sep 23, 2015 @ 18:31:44.000)
[00:00:25]             │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:00:25]             │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:00:25]             │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:00:25]             │ debg ... sleep(500) start
[00:00:26]             │ debg ... sleep(500) end
[00:00:26]             │ debg TestSubjects.click(superDatePickerstartDatePopoverButton)
[00:00:26]             │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerstartDatePopoverButton"]') with timeout=10000
[00:00:26]             │ debg Find.findByCssSelector('[data-test-subj="superDatePickerstartDatePopoverButton"]') with timeout=10000
[00:00:26]             │ debg Find.waitForElementStale with timeout=10000
[00:00:26]             │ debg Find.findByCssSelector('div.euiPopover__panel-isOpen') with timeout=10000
[00:00:26]             │ debg TestSubjects.click(superDatePickerAbsoluteTab)
[00:00:26]             │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:00:26]             │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:00:26]             │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:00:26]             │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:00:26]             │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:00:26]             │ debg TestSubjects.setValue(superDatePickerAbsoluteDateInput, Sep 19, 2015 @ 06:31:44.000)
[00:00:26]             │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:00:26]             │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:00:26]             │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:00:27]             │ debg TestSubjects.exists(superDatePickerApplyTimeButton)
[00:00:27]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerApplyTimeButton"]') with timeout=2500
[00:00:30]             │ debg --- retry.tryForTime error: [data-test-subj="superDatePickerApplyTimeButton"] is not displayed
[00:00:30]             │ debg TestSubjects.click(querySubmitButton)
[00:00:30]             │ debg Find.clickByCssSelector('[data-test-subj="querySubmitButton"]') with timeout=10000
[00:00:30]             │ debg Find.findByCssSelector('[data-test-subj="querySubmitButton"]') with timeout=10000
[00:00:30]             │ debg Find.waitForElementStale with timeout=10000
[00:00:31]             │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:00:31]             │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:00:33]           └-> main view
[00:00:33]             └-> "before each" hook: global before each
[00:00:41]             └- ✓ pass  (8.4s) "Discover main view"
[00:00:41]           └-> Click save button
[00:00:41]             └-> "before each" hook: global before each
[00:00:41]             │ debg TestSubjects.click(discoverSaveButton)
[00:00:41]             │ debg Find.clickByCssSelector('[data-test-subj="discoverSaveButton"]') with timeout=10000
[00:00:41]             │ debg Find.findByCssSelector('[data-test-subj="discoverSaveButton"]') with timeout=10000
[00:00:49]             └- ✓ pass  (8.1s) "Discover Click save button"
[00:00:49]           └-> Save search panel
[00:00:49]             └-> "before each" hook: global before each
[00:00:49]             │ debg TestSubjects.setValue(savedObjectTitle, a11ySearch)
[00:00:49]             │ debg TestSubjects.click(savedObjectTitle)
[00:00:49]             │ debg Find.clickByCssSelector('[data-test-subj="savedObjectTitle"]') with timeout=10000
[00:00:49]             │ debg Find.findByCssSelector('[data-test-subj="savedObjectTitle"]') with timeout=10000
[00:00:56]             └- ✓ pass  (7.2s) "Discover Save search panel"
[00:00:56]           └-> Confirm saved search
[00:00:56]             └-> "before each" hook: global before each
[00:00:56]             │ debg TestSubjects.click(confirmSaveSavedObjectButton)
[00:00:56]             │ debg Find.clickByCssSelector('[data-test-subj="confirmSaveSavedObjectButton"]') with timeout=10000
[00:00:56]             │ debg Find.findByCssSelector('[data-test-subj="confirmSaveSavedObjectButton"]') with timeout=10000
[00:01:04]             └- ✓ pass  (7.6s) "Discover Confirm saved search"
[00:01:04]           └-> Click on new to clear the search
[00:01:04]             └-> "before each" hook: global before each
[00:01:04]             │ debg TestSubjects.click(discoverNewButton)
[00:01:04]             │ debg Find.clickByCssSelector('[data-test-subj="discoverNewButton"]') with timeout=10000
[00:01:04]             │ debg Find.findByCssSelector('[data-test-subj="discoverNewButton"]') with timeout=10000
[00:01:04]             │ debg isGlobalLoadingIndicatorVisible
[00:01:04]             │ debg TestSubjects.exists(globalLoadingIndicator)
[00:01:04]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:01:04]             │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:01:04]             │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:01:13]             └- ✓ pass  (9.6s) "Discover Click on new to clear the search"
[00:01:13]           └-> Open load saved search panel
[00:01:13]             └-> "before each" hook: global before each
[00:01:13]             │ debg TestSubjects.exists(loadSearchForm)
[00:01:13]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loadSearchForm"]') with timeout=2500
[00:01:16]             │ debg --- retry.tryForTime error: [data-test-subj="loadSearchForm"] is not displayed
[00:01:17]             │ debg TestSubjects.moveMouseTo(discoverOpenButton)
[00:01:17]             │ debg TestSubjects.find(discoverOpenButton)
[00:01:17]             │ debg Find.findByCssSelector('[data-test-subj="discoverOpenButton"]') with timeout=10000
[00:01:17]             │ debg TestSubjects.click(discoverOpenButton)
[00:01:17]             │ debg Find.clickByCssSelector('[data-test-subj="discoverOpenButton"]') with timeout=10000
[00:01:17]             │ debg Find.findByCssSelector('[data-test-subj="discoverOpenButton"]') with timeout=10000
[00:01:17]             │ debg isGlobalLoadingIndicatorVisible
[00:01:17]             │ debg TestSubjects.exists(globalLoadingIndicator)
[00:01:17]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:01:18]             │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:01:20]             │ debg --- retry.tryForTime failed again with the same message...
[00:01:20]             │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:01:20]             │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:01:20]             │ debg TestSubjects.exists(loadSearchForm)
[00:01:20]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loadSearchForm"]') with timeout=2500
[00:01:28]             │ debg TestSubjects.click(euiFlyoutCloseButton)
[00:01:28]             │ debg Find.clickByCssSelector('[data-test-subj="euiFlyoutCloseButton"]') with timeout=10000
[00:01:28]             │ debg Find.findByCssSelector('[data-test-subj="euiFlyoutCloseButton"]') with timeout=10000
[00:01:28]             └- ✓ pass  (14.6s) "Discover Open load saved search panel"
[00:01:28]           └-> Open inspector panel
[00:01:28]             └-> "before each" hook: global before each
[00:01:28]             │ debg Inspector.open
[00:01:28]             │ debg TestSubjects.exists(inspectorPanel)
[00:01:28]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="inspectorPanel"]') with timeout=2500
[00:01:31]             │ debg --- retry.tryForTime error: [data-test-subj="inspectorPanel"] is not displayed
[00:01:31]             │ debg TestSubjects.click(openInspectorButton)
[00:01:31]             │ debg Find.clickByCssSelector('[data-test-subj="openInspectorButton"]') with timeout=10000
[00:01:31]             │ debg Find.findByCssSelector('[data-test-subj="openInspectorButton"]') with timeout=10000
[00:01:31]             │ debg TestSubjects.exists(inspectorPanel)
[00:01:31]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="inspectorPanel"]') with timeout=2500
[00:01:39]             │ debg Close Inspector
[00:01:39]             │ debg TestSubjects.exists(inspectorPanel)
[00:01:39]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="inspectorPanel"]') with timeout=2500
[00:01:39]             │ debg Closing flyout inspectorPanel
[00:01:39]             │ debg TestSubjects.find(inspectorPanel)
[00:01:39]             │ debg Find.findByCssSelector('[data-test-subj="inspectorPanel"]') with timeout=10000
[00:01:39]             │ debg Waiting up to 20000ms for flyout closed...
[00:01:39]             │ debg TestSubjects.exists(inspectorPanel)
[00:01:39]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="inspectorPanel"]') with timeout=1000
[00:01:40]             │ debg --- retry.tryForTime error: [data-test-subj="inspectorPanel"] is not displayed
[00:01:41]             │ debg TestSubjects.exists(inspectorPanel)
[00:01:41]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="inspectorPanel"]') with timeout=2500
[00:01:43]             │ debg --- retry.tryForTime error: [data-test-subj="inspectorPanel"] is not displayed
[00:01:44]             └- ✓ pass  (15.8s) "Discover Open inspector panel"
[00:01:44]           └-> Open add filter
[00:01:44]             └-> "before each" hook: global before each
[00:01:44]             │ debg TestSubjects.click(addFilter)
[00:01:44]             │ debg Find.clickByCssSelector('[data-test-subj="addFilter"]') with timeout=10000
[00:01:44]             │ debg Find.findByCssSelector('[data-test-subj="addFilter"]') with timeout=10000
[00:01:51]             └- ✓ pass  (7.6s) "Discover Open add filter"
[00:01:51]           └-> Select values for a filter
[00:01:51]             └-> "before each" hook: global before each
[00:01:51]             │ debg TestSubjects.click(addFilter)
[00:01:51]             │ debg Find.clickByCssSelector('[data-test-subj="addFilter"]') with timeout=10000
[00:01:51]             │ debg Find.findByCssSelector('[data-test-subj="addFilter"]') with timeout=10000
[00:01:52]             │ debg comboBox.set, comboBoxSelector: filterFieldSuggestionList
[00:01:52]             │ debg TestSubjects.find(filterFieldSuggestionList)
[00:01:52]             │ debg Find.findByCssSelector('[data-test-subj="filterFieldSuggestionList"]') with timeout=10000
[00:01:52]             │ debg comboBox.setElement, value: extension.raw
[00:01:52]             │ debg comboBox.isOptionSelected, value: extension.raw
[00:01:54]             │ debg TestSubjects.exists(~comboBoxOptionsList)
[00:01:54]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="comboBoxOptionsList"]') with timeout=2500
[00:01:54]             │ debg Find.allByCssSelector('.euiFilterSelectItem[title^="extension.raw"]') with timeout=2500
[00:01:55]             │ debg TestSubjects.exists(~comboBoxOptionsList)
[00:01:55]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="comboBoxOptionsList"]') with timeout=2500
[00:01:57]             │ debg --- retry.tryForTime error: [data-test-subj~="comboBoxOptionsList"] is not displayed
[00:01:58]             │ debg comboBox.set, comboBoxSelector: filterOperatorList
[00:01:58]             │ debg TestSubjects.find(filterOperatorList)
[00:01:58]             │ debg Find.findByCssSelector('[data-test-subj="filterOperatorList"]') with timeout=10000
[00:01:58]             │ debg comboBox.setElement, value: is one of
[00:01:58]             │ debg comboBox.isOptionSelected, value: is one of
[00:02:00]             │ debg TestSubjects.exists(~comboBoxOptionsList)
[00:02:00]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="comboBoxOptionsList"]') with timeout=2500
[00:02:00]             │ debg Find.allByCssSelector('.euiFilterSelectItem[title^="is one of"]') with timeout=2500
[00:02:01]             │ debg TestSubjects.exists(~comboBoxOptionsList)
[00:02:01]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="comboBoxOptionsList"]') with timeout=2500
[00:02:03]             │ debg --- retry.tryForTime error: [data-test-subj~="comboBoxOptionsList"] is not displayed
[00:02:04]             │ debg TestSubjects.find(filterParams)
[00:02:04]             │ debg Find.findByCssSelector('[data-test-subj="filterParams"]') with timeout=10000
[00:02:04]             │ debg comboBox.setElement, value: jpg
[00:02:04]             │ debg comboBox.isOptionSelected, value: jpg
[00:02:06]             │ debg TestSubjects.exists(~comboBoxOptionsList)
[00:02:06]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="comboBoxOptionsList"]') with timeout=2500
[00:02:06]             │ debg Find.allByCssSelector('.euiFilterSelectItem[title^="jpg"]') with timeout=2500
[00:02:07]             │ debg TestSubjects.exists(~comboBoxOptionsList)
[00:02:07]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="comboBoxOptionsList"]') with timeout=2500
[00:02:07]             │ debg TestSubjects.click(saveFilter)
[00:02:07]             │ debg Find.clickByCssSelector('[data-test-subj="saveFilter"]') with timeout=10000
[00:02:07]             │ debg Find.findByCssSelector('[data-test-subj="saveFilter"]') with timeout=10000
[00:02:07]             │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:02:07]             │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:02:15]             └- ✓ pass  (23.4s) "Discover Select values for a filter"
[00:02:15]           └-> Load a new search from the panel
[00:02:15]             └-> "before each" hook: global before each
[00:02:15]             │ debg TestSubjects.click(discoverSaveButton)
[00:02:15]             │ debg Find.clickByCssSelector('[data-test-subj="discoverSaveButton"]') with timeout=10000
[00:02:15]             │ debg Find.findByCssSelector('[data-test-subj="discoverSaveButton"]') with timeout=10000
[00:02:15]             │ debg TestSubjects.setValue(savedObjectTitle, filterSearch)
[00:02:15]             │ debg TestSubjects.click(savedObjectTitle)
[00:02:15]             │ debg Find.clickByCssSelector('[data-test-subj="savedObjectTitle"]') with timeout=10000
[00:02:15]             │ debg Find.findByCssSelector('[data-test-subj="savedObjectTitle"]') with timeout=10000
[00:02:15]             │ debg TestSubjects.click(confirmSaveSavedObjectButton)
[00:02:15]             │ debg Find.clickByCssSelector('[data-test-subj="confirmSaveSavedObjectButton"]') with timeout=10000
[00:02:15]             │ debg Find.findByCssSelector('[data-test-subj="confirmSaveSavedObjectButton"]') with timeout=10000
[00:02:16]             │ debg TestSubjects.exists(loadSearchForm)
[00:02:16]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loadSearchForm"]') with timeout=2500
[00:02:18]             │ERROR browser[SEVERE] http://localhost:61131/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 333:78758 TypeError: Cannot read property 'change' of undefined
[00:02:18]             │          at http://localhost:61131/bundles/8.bundle.js:1:34578
[00:02:18]             │          at c.$digest (http://localhost:61131/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:334:100155)
[00:02:18]             │          at http://localhost:61131/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:334:102127
[00:02:18]             │          at Yr.completeTask (http://localhost:61131/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:334:122692)
[00:02:18]             │          at http://localhost:61131/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:334:34257
[00:02:18]             │ debg --- retry.tryForTime error: [data-test-subj="loadSearchForm"] is not displayed
[00:02:19]             │ debg TestSubjects.moveMouseTo(discoverOpenButton)
[00:02:19]             │ debg TestSubjects.find(discoverOpenButton)
[00:02:19]             │ debg Find.findByCssSelector('[data-test-subj="discoverOpenButton"]') with timeout=10000
[00:02:19]             │ debg TestSubjects.click(discoverOpenButton)
[00:02:19]             │ debg Find.clickByCssSelector('[data-test-subj="discoverOpenButton"]') with timeout=10000
[00:02:19]             │ debg Find.findByCssSelector('[data-test-subj="discoverOpenButton"]') with timeout=10000
[00:02:19]             │ debg isGlobalLoadingIndicatorVisible
[00:02:19]             │ debg TestSubjects.exists(globalLoadingIndicator)
[00:02:19]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:02:20]             │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:02:22]             │ debg --- retry.tryForTime failed again with the same message...
[00:02:22]             │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:02:22]             │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:02:22]             │ debg TestSubjects.exists(loadSearchForm)
[00:02:22]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loadSearchForm"]') with timeout=2500
[00:02:22]             │ debg TestSubjects.exists(loadSearchForm)
[00:02:22]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loadSearchForm"]') with timeout=2500
[00:02:22]             │ debg Find.byButtonText('filterSearch') with timeout=10000
[00:02:27]             │ debg isGlobalLoadingIndicatorVisible
[00:02:27]             │ debg TestSubjects.exists(globalLoadingIndicator)
[00:02:27]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:02:28]             │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:02:29]             │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:02:29]             │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:02:36]             └- ✓ pass  (20.9s) "Discover Load a new search from the panel"
[00:02:36]           └-> click share button
[00:02:36]             └-> "before each" hook: global before each
[00:02:36]             │ debg TestSubjects.click(shareTopNavButton)
[00:02:36]             │ debg Find.clickByCssSelector('[data-test-subj="shareTopNavButton"]') with timeout=10000
[00:02:36]             │ debg Find.findByCssSelector('[data-test-subj="shareTopNavButton"]') with timeout=10000
[00:02:43]             └- ✓ pass  (7.5s) "Discover click share button"
[00:02:43]           └-> Open sidebar filter
[00:02:43]             └-> "before each" hook: global before each
[00:02:43]             │ debg TestSubjects.click(toggleFieldFilterButton)
[00:02:43]             │ debg Find.clickByCssSelector('[data-test-subj="toggleFieldFilterButton"]') with timeout=10000
[00:02:43]             │ debg Find.findByCssSelector('[data-test-subj="toggleFieldFilterButton"]') with timeout=10000
[00:02:43]             │ debg TestSubjects.exists(filterSelectionPanel)
[00:02:43]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="filterSelectionPanel"]') with timeout=120000
[00:02:50]             └- ✓ pass  (7.1s) "Discover Open sidebar filter"
[00:02:50]           └-> Close sidebar filter
[00:02:50]             └-> "before each" hook: global before each
[00:02:50]             │ debg TestSubjects.click(toggleFieldFilterButton)
[00:02:50]             │ debg Find.clickByCssSelector('[data-test-subj="toggleFieldFilterButton"]') with timeout=10000
[00:02:50]             │ debg Find.findByCssSelector('[data-test-subj="toggleFieldFilterButton"]') with timeout=10000
[00:02:50]             │ debg TestSubjects.missingOrFail(filterSelectionPanel)
[00:02:50]             │ debg TestSubjects.waitForHidden(filterSelectionPanel)
[00:02:50]             │ debg TestSubjects.find(filterSelectionPanel)
[00:02:50]             │ debg Find.findByCssSelector('[data-test-subj="filterSelectionPanel"]') with timeout=10000
[00:02:51]             │ debg Find.waitForElementHidden with timeout=2500
[00:02:58]             └- ✓ pass  (7.2s) "Discover Close sidebar filter"
[00:02:58]           └-> Add a field from sidebar
[00:02:58]             └-> "before each" hook: global before each
[00:02:58]             │ debg TestSubjects.moveMouseTo(field-@message)
[00:02:58]             │ debg TestSubjects.find(field-@message)
[00:02:58]             │ debg Find.findByCssSelector('[data-test-subj="field-@message"]') with timeout=10000
[00:02:58]             │ debg TestSubjects.click(fieldToggle-@message)
[00:02:58]             │ debg Find.clickByCssSelector('[data-test-subj="fieldToggle-@message"]') with timeout=10000
[00:02:58]             │ debg Find.findByCssSelector('[data-test-subj="fieldToggle-@message"]') with timeout=10000
[00:03:00]             └- ✓ pass  (2.6s) "Discover Add a field from sidebar"
[00:03:00]           └-> Add more fields from sidebar
[00:03:00]             └-> "before each" hook: global before each
[00:03:00]             │ debg TestSubjects.click(field-extension)
[00:03:00]             │ debg Find.clickByCssSelector('[data-test-subj="field-extension"]') with timeout=10000
[00:03:00]             │ debg Find.findByCssSelector('[data-test-subj="field-extension"]') with timeout=10000
[00:03:00]             │ debg TestSubjects.exists(plus-extension-jpg)
[00:03:00]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="plus-extension-jpg"]') with timeout=2500
[00:03:00]             │ debg TestSubjects.click(plus-extension-jpg)
[00:03:00]             │ debg Find.clickByCssSelector('[data-test-subj="plus-extension-jpg"]') with timeout=10000
[00:03:00]             │ debg Find.findByCssSelector('[data-test-subj="plus-extension-jpg"]') with timeout=10000
[00:03:01]             │ debg isGlobalLoadingIndicatorVisible
[00:03:01]             │ debg TestSubjects.exists(globalLoadingIndicator)
[00:03:01]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:03:01]             │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:03:01]             │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:03:02]             │ debg TestSubjects.click(field-geo.src)
[00:03:02]             │ debg Find.clickByCssSelector('[data-test-subj="field-geo.src"]') with timeout=10000
[00:03:02]             │ debg Find.findByCssSelector('[data-test-subj="field-geo.src"]') with timeout=10000
[00:03:02]             │ debg TestSubjects.exists(plus-geo.src-IN)
[00:03:02]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="plus-geo.src-IN"]') with timeout=2500
[00:03:02]             │ debg TestSubjects.click(plus-geo.src-IN)
[00:03:02]             │ debg Find.clickByCssSelector('[data-test-subj="plus-geo.src-IN"]') with timeout=10000
[00:03:02]             │ debg Find.findByCssSelector('[data-test-subj="plus-geo.src-IN"]') with timeout=10000
[00:03:02]             │ debg isGlobalLoadingIndicatorVisible
[00:03:02]             │ debg TestSubjects.exists(globalLoadingIndicator)
[00:03:02]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:03:02]             │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:03:02]             │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:03:04]             └- ✓ pass  (3.4s) "Discover Add more fields from sidebar"
[00:03:04]           └-> should open context view on a doc
[00:03:04]             └-> "before each" hook: global before each
[00:03:04]             │ debg TestSubjects.find(docTable)
[00:03:04]             │ debg Find.findByCssSelector('[data-test-subj="docTable"]') with timeout=10000
[00:03:04]             │ debg TestSubjects.find(docTable)
[00:03:04]             │ debg Find.findByCssSelector('[data-test-subj="docTable"]') with timeout=10000
[00:03:15]             │ info Taking screenshot "/dev/shm/workspace/kibana/test/functional/screenshots/failure/Discover should open context view on a doc.png"
[00:03:15]             │ info Current URL is: http://localhost:61131/app/kibana#/discover/2e8022f0-7e7e-11ea-b2c2-87eac40c8937?_a=(columns:!(%27@message%27),filters:!((%27$state%27:(store:appState),meta:(alias:!n,disabled:!f,index:%27logstash-*%27,key:extension.raw,negate:!f,params:!(jpg),type:phrases,value:jpg),query:(bool:(minimum_should_match:1,should:!((match_phrase:(extension.raw:jpg)))))),(%27$state%27:(store:appState),meta:(alias:!n,disabled:!f,index:%27logstash-*%27,key:extension,negate:!f,params:(query:jpg),type:phrase),query:(match_phrase:(extension:jpg))),(%27$state%27:(store:appState),meta:(alias:!n,disabled:!f,index:%27logstash-*%27,key:geo.src,negate:!f,params:(query:IN),type:phrase),query:(match_phrase:(geo.src:IN)))),index:%27logstash-*%27,interval:auto,query:(language:kuery,query:%27%27),sort:!())
[00:03:15]             │ info Saving page source to: /dev/shm/workspace/kibana/test/functional/failure_debug/html/Discover should open context view on a doc.html
[00:03:15]             └- ✖ fail: "Discover should open context view on a doc"
[00:03:15]             │

Stack Trace

TypeError: Cannot read property 'click' of undefined
    at Context.it (test/accessibility/apps/discover.ts:135:49)
    at process._tickCallback (internal/process/next_tick.js:68:7)

History

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

@kindsun kindsun merged commit 83b1c95 into elastic:7.x Apr 14, 2020
@kindsun kindsun deleted the backport/7.x/pr-60942 branch April 14, 2020 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants