Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[7.x] [Canvas] Top Menu (#59982) #64347

Closed
wants to merge 2 commits into from

Conversation

cqliu1
Copy link
Contributor

@cqliu1 cqliu1 commented Apr 23, 2020

Backports the following commits to 7.x:

* Redesigned workpad_header to top menu layout

* Added comments

* Fixed element spec

* Removed element preview images

* Removed tooltip from menus

* Removed extraneous JSX

* Fixed element fixtures

* Moved component strings

* top menu design tweaks

* Added filter debug element

* Fix file picker in asset manager

* Sort components strings object keys

* Removed ElementTypes component in favor of SavedElementsModal

* Updated stories

* Fixed custom elements functional tests

* Removed unused tag strings

* Fixed test fixtures

* Updated element_menu stories

* Updated view_menu stories

* TS for SavedElementsModal

* Updated types

* Fixed TS errors

* Fix i18n errors

* Renamed stories

* Fixed test file name

* Fixed stories

* Updated storyshots

* Reverted storybook webpack config change

* Fixed SavedElementsModal stories

* Updated comments

* Removed unnecessary ts-ignores

* Moved workpad_shortcuts back to /components

* Unskip custom elements functional test

* Reverted workpad_loader changes

* Added element_menu stories and mocks

* Fixed element i18n strings

* Updated storyshots

* Updated storyshot

Co-authored-by: Ryan Keairns <contactryank@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
@cqliu1
Copy link
Contributor Author

cqliu1 commented Apr 23, 2020

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💔 Build Failed

Failed CI Steps


Test Failures

Kibana Pipeline / kibana-xpack-agent / Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/canvas/smoke_test·js.Canvas app smoke test "before all" hook for "loads workpad list"

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has failed 1 times on tracked branches: https://dryrun

[00:00:00]       │
[00:01:34]         └-: Canvas app
[00:01:34]           └-> "before all" hook
[00:01:34]           └-: smoke test
[00:01:34]             └-> "before all" hook
[00:01:34]             └-> "before all" hook
[00:01:34]               │ info [logstash_functional] Loading "mappings.json"
[00:01:34]               │ info [logstash_functional] Loading "data.json.gz"
[00:01:34]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1587679006027660455] applying create index request using v1 templates []
[00:01:34]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1587679006027660455] [logstash-2015.09.22] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:01:34]               │ info [logstash_functional] Created index "logstash-2015.09.22"
[00:01:34]               │ 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:01:34]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1587679006027660455] applying create index request using v1 templates []
[00:01:34]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1587679006027660455] [logstash-2015.09.20] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:01:34]               │ info [logstash_functional] Created index "logstash-2015.09.20"
[00:01:34]               │ 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:01:34]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1587679006027660455] applying create index request using v1 templates []
[00:01:34]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1587679006027660455] [logstash-2015.09.21] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:01:34]               │ info [logstash_functional] Created index "logstash-2015.09.21"
[00:01:34]               │ 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:01:44]               │ info progress: 9924
[00:01:47]               │ info [logstash_functional] Indexed 4634 docs into "logstash-2015.09.22"
[00:01:47]               │ info [logstash_functional] Indexed 4757 docs into "logstash-2015.09.20"
[00:01:47]               │ info [logstash_functional] Indexed 4614 docs into "logstash-2015.09.21"
[00:01:47]               │ info [canvas/default] Loading "mappings.json"
[00:01:47]               │ info [canvas/default] Loading "data.json.gz"
[00:01:47]               │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1587679006027660455] [.kibana_2/fLtQrWEPQFO65xpW-5Hr0w] deleting index
[00:01:47]               │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1587679006027660455] [.kibana_1/J-xlnL6EQH-rNr6yaB_6cw] deleting index
[00:01:47]               │ info [canvas/default] Deleted existing index [".kibana_2",".kibana_1"]
[00:01:47]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1587679006027660455] applying create index request using v1 templates []
[00:01:47]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1587679006027660455] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:01:47]               │ info [canvas/default] Created index ".kibana_1"
[00:01:47]               │ debg [canvas/default] ".kibana_1" settings {"index":{"number_of_replicas":"1","number_of_shards":"1"}}
[00:01:47]               │ info [canvas/default] Indexed 3 docs into ".kibana_1"
[00:01:48]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xl-1587679006027660455] [.kibana_1/I1qOzcTXRwOxbkYbJE9Ejw] update_mapping [_doc]
[00:01:48]               │ debg Migrating saved objects
[00:01:48]               │ proc [kibana]   log   [23:09:00.657] [info][savedobjects-service] Creating index .kibana_2.
[00:01:48]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1587679006027660455] applying create index request using v1 templates []
[00:01:48]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1587679006027660455] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:01:48]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xl-1587679006027660455] updating number_of_replicas to [0] for indices [.kibana_2]
[00:01:49]               │ proc [kibana]   log   [23:09:00.760] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:01:49]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xl-1587679006027660455] [.kibana_2/VznOG7GFQimMCycdkN0Vjw] update_mapping [_doc]
[00:01:49]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xl-1587679006027660455] [.kibana_2/VznOG7GFQimMCycdkN0Vjw] update_mapping [_doc]
[00:01:49]               │ proc [kibana]   log   [23:09:00.925] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:01:49]               │ proc [kibana]   log   [23:09:00.989] [info][savedobjects-service] Finished in 335ms.
[00:01:49]               │ debg navigating to canvas url: http://localhost:6121/app/canvas#/
[00:01:49]               │ debg navigate to: http://localhost:6121/app/canvas#/
[00:01:49]               │ proc [kibana]   log   [23:09:01.010] [info][authentication][plugins][security] Authentication attempt failed: [security_exception] unable to authenticate user [global_advanced_settings_read_user] for REST request [/_security/_authenticate], with { header={ WWW-Authenticate={ 0="ApiKey" & 1="Basic realm=\"security\" charset=\"UTF-8\"" } } }
[00:01:49]               │ERROR browser[SEVERE] http://localhost:6121/app/canvas?_t=1587683340999#/ - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:01:49]               │ debg ... sleep(700) start
[00:01:50]               │ debg ... sleep(700) end
[00:01:50]               │ debg returned from get, calling refresh
[00:01:50]               │ debg browser[INFO] http://localhost:6121/login?next=%2Fapp%2Fcanvas%3F_t%3D1587683340999#/ 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:01:50]               │
[00:01:50]               │ debg browser[INFO] http://localhost:6121/bundles/app/core/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:01:50]               │ debg currentUrl = http://localhost:6121/login?next=%2Fapp%2Fcanvas%3F_t%3D1587683340999#/
[00:01:50]               │          appUrl = http://localhost:6121/app/canvas#/
[00:01:50]               │ debg TestSubjects.find(kibanaChrome)
[00:01:50]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:01:53]               │ debg Found login page
[00:01:53]               │ debg TestSubjects.setValue(loginUsername, test_user)
[00:01:53]               │ debg TestSubjects.click(loginUsername)
[00:01:53]               │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:01:53]               │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:01:53]               │ debg browser[INFO] http://localhost:6121/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-04-23T23:09:05Z
[00:01:53]               │        Adding connection to http://localhost:6121/elasticsearch
[00:01:53]               │
[00:01:53]               │      "
[00:01:54]               │ debg TestSubjects.setValue(loginPassword, changeme)
[00:01:54]               │ debg TestSubjects.click(loginPassword)
[00:01:54]               │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:01:54]               │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:01:54]               │ debg TestSubjects.click(loginSubmit)
[00:01:54]               │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:01:54]               │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:01:54]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"] nav:not(.ng-hide)') with timeout=60000
[00:02:04]               │ debg browser[INFO] http://localhost:6121/app/canvas?_t=1587683340999#/ 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:02:04]               │
[00:02:04]               │ debg browser[INFO] http://localhost:6121/bundles/app/canvas/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:02:04]               │ debg browser[INFO] http://localhost:6121/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-04-23T23:09:11Z
[00:02:04]               │        Adding connection to http://localhost:6121/elasticsearch
[00:02:04]               │
[00:02:04]               │      "
[00:02:04]               │ERROR browser[SEVERE] http://localhost:6121/bundles/commons.bundle.js 2:3746219 TypeError: spec is not a function
[00:02:04]               │          at http://localhost:6121/bundles/commons.bundle.js:3:6506912
[00:02:04]               │          at Array.map (<anonymous>)
[00:02:04]               │          at applyElementStrings (http://localhost:6121/bundles/commons.bundle.js:3:6506881)
[00:02:04]               │          at Object.3750 (http://localhost:6121/bundles/canvas.bundle.js:2:1054638)
[00:02:04]               │          at __webpack_require__ (http://localhost:6121/bundles/canvas.bundle.js:2:1564)
[00:02:04]               │          at Object.3749 (http://localhost:6121/bundles/canvas.bundle.js:2:1051884)
[00:02:04]               │          at __webpack_require__ (http://localhost:6121/bundles/canvas.bundle.js:2:1564)
[00:02:04]               │          at Object.3471 (http://localhost:6121/bundles/canvas.bundle.js:2:251710)
[00:02:04]               │          at __webpack_require__ (http://localhost:6121/bundles/canvas.bundle.js:2:1564)
[00:02:04]               │          at Object.3470 (http://localhost:6121/bundles/canvas.bundle.js:2:250955)
[00:02:04]               │ debg browser[INFO] http://localhost:6121/bundles/commons.bundle.js 2:3747227 "Detected an unhandled Promise rejection.
[00:02:04]               │      EmptyError: no elements in sequence"
[00:02:04]               │ERROR browser[SEVERE] http://localhost:6121/app/canvas?_t=1587683340999#/ 0:0 Uncaught e: no elements in sequence
[00:02:04]               │ debg browser[INFO] http://localhost:6121/bundles/commons.bundle.js 2:3747227 "Detected an unhandled Promise rejection.
[00:02:04]               │      TypeError: spec is not a function"
[00:02:04]               │ERROR browser[SEVERE] http://localhost:6121/bundles/commons.bundle.js 2:6506911 Uncaught TypeError: spec is not a function
[00:02:04]               │ERROR browser[SEVERE] http://localhost:6121/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 270:489956 Uncaught e: no elements in sequence
[00:02:55]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="kibanaChrome"] nav:not(.ng-hide))
[00:02:55]               │      Wait timed out after 61161ms
[00:02:56]               │ debg navigate to: http://localhost:6121/app/canvas#/
[00:02:56]               │ debg browser[INFO] http://localhost:6121/app/canvas?_t=1587683407812#/ 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:02:56]               │
[00:02:56]               │ debg browser[INFO] http://localhost:6121/bundles/app/canvas/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:02:56]               │ debg ... sleep(700) start
[00:02:57]               │ debg ... sleep(700) end
[00:02:57]               │ debg returned from get, calling refresh
[00:02:59]               │ debg browser[INFO] http://localhost:6121/app/canvas?_t=1587683407812#/ 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:02:59]               │
[00:02:59]               │ debg browser[INFO] http://localhost:6121/bundles/app/canvas/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:02:59]               │ debg currentUrl = http://localhost:6121/app/canvas#/
[00:02:59]               │          appUrl = http://localhost:6121/app/canvas#/
[00:02:59]               │ debg TestSubjects.find(kibanaChrome)
[00:02:59]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:03:09]               │ debg browser[INFO] http://localhost:6121/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-04-23T23:10:17Z
[00:03:09]               │        Adding connection to http://localhost:6121/elasticsearch
[00:03:09]               │
[00:03:09]               │      "
[00:03:09]               │ERROR browser[SEVERE] http://localhost:6121/bundles/commons.bundle.js 2:3746219 TypeError: spec is not a function
[00:03:09]               │          at http://localhost:6121/bundles/commons.bundle.js:3:6506912
[00:03:09]               │          at Array.map (<anonymous>)
[00:03:09]               │          at applyElementStrings (http://localhost:6121/bundles/commons.bundle.js:3:6506881)
[00:03:09]               │          at Object.3750 (http://localhost:6121/bundles/canvas.bundle.js:2:1054638)
[00:03:09]               │          at __webpack_require__ (http://localhost:6121/bundles/canvas.bundle.js:2:1564)
[00:03:09]               │          at Object.3749 (http://localhost:6121/bundles/canvas.bundle.js:2:1051884)
[00:03:09]               │          at __webpack_require__ (http://localhost:6121/bundles/canvas.bundle.js:2:1564)
[00:03:09]               │          at Object.3471 (http://localhost:6121/bundles/canvas.bundle.js:2:251710)
[00:03:09]               │          at __webpack_require__ (http://localhost:6121/bundles/canvas.bundle.js:2:1564)
[00:03:09]               │          at Object.3470 (http://localhost:6121/bundles/canvas.bundle.js:2:250955)
[00:03:09]               │ debg browser[INFO] http://localhost:6121/bundles/commons.bundle.js 2:3747227 "Detected an unhandled Promise rejection.
[00:03:09]               │      TypeError: spec is not a function"
[00:03:09]               │ERROR browser[SEVERE] http://localhost:6121/bundles/commons.bundle.js 2:6506911 Uncaught TypeError: spec is not a function
[00:04:00]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="kibanaChrome"])
[00:04:00]               │      Wait timed out after 61236ms
[00:04:00]               │ debg --- retry.tryForTime error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="kibanaChrome"])
[00:04:00]               │      Wait timed out after 61236ms
[00:04:00]               │          at /dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
[00:04:00]               │          at process._tickCallback (internal/process/next_tick.js:68:7)
[00:04:01]               │ debg navigate to: http://localhost:6121/app/canvas#/
[00:04:01]               │ debg browser[INFO] http://localhost:6121/app/canvas?_t=1587683473191#/ 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:04:01]               │
[00:04:01]               │ debg browser[INFO] http://localhost:6121/bundles/app/canvas/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:04:01]               │ debg ... sleep(700) start
[00:04:02]               │ debg ... sleep(700) end
[00:04:02]               │ debg returned from get, calling refresh
[00:04:04]               │ debg browser[INFO] http://localhost:6121/app/canvas?_t=1587683473191#/ 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:04:04]               │
[00:04:04]               │ debg browser[INFO] http://localhost:6121/bundles/app/canvas/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:04:04]               │ debg currentUrl = http://localhost:6121/app/canvas#/
[00:04:04]               │          appUrl = http://localhost:6121/app/canvas#/
[00:04:04]               │ debg TestSubjects.find(kibanaChrome)
[00:04:04]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:04:14]               │ debg browser[INFO] http://localhost:6121/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-04-23T23:11:22Z
[00:04:14]               │        Adding connection to http://localhost:6121/elasticsearch
[00:04:14]               │
[00:04:14]               │      "
[00:04:14]               │ERROR browser[SEVERE] http://localhost:6121/bundles/commons.bundle.js 2:3746219 TypeError: spec is not a function
[00:04:14]               │          at http://localhost:6121/bundles/commons.bundle.js:3:6506912
[00:04:14]               │          at Array.map (<anonymous>)
[00:04:14]               │          at applyElementStrings (http://localhost:6121/bundles/commons.bundle.js:3:6506881)
[00:04:14]               │          at Object.3750 (http://localhost:6121/bundles/canvas.bundle.js:2:1054638)
[00:04:14]               │          at __webpack_require__ (http://localhost:6121/bundles/canvas.bundle.js:2:1564)
[00:04:14]               │          at Object.3749 (http://localhost:6121/bundles/canvas.bundle.js:2:1051884)
[00:04:14]               │          at __webpack_require__ (http://localhost:6121/bundles/canvas.bundle.js:2:1564)
[00:04:14]               │          at Object.3471 (http://localhost:6121/bundles/canvas.bundle.js:2:251710)
[00:04:14]               │          at __webpack_require__ (http://localhost:6121/bundles/canvas.bundle.js:2:1564)
[00:04:14]               │          at Object.3470 (http://localhost:6121/bundles/canvas.bundle.js:2:250955)
[00:04:14]               │ debg browser[INFO] http://localhost:6121/bundles/commons.bundle.js 2:3747227 "Detected an unhandled Promise rejection.
[00:04:14]               │      TypeError: spec is not a function"
[00:04:14]               │ERROR browser[SEVERE] http://localhost:6121/bundles/commons.bundle.js 2:6506911 Uncaught TypeError: spec is not a function
[00:05:05]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="kibanaChrome"])
[00:05:05]               │      Wait timed out after 61146ms
[00:05:06]               │ debg navigate to: http://localhost:6121/app/canvas#/
[00:05:06]               │ debg browser[INFO] http://localhost:6121/app/canvas?_t=1587683537777#/ 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:05:06]               │
[00:05:06]               │ debg browser[INFO] http://localhost:6121/bundles/app/canvas/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:05:06]               │ debg ... sleep(700) start
[00:05:07]               │ debg ... sleep(700) end
[00:05:07]               │ debg returned from get, calling refresh
[00:05:08]               │ debg browser[INFO] http://localhost:6121/app/canvas?_t=1587683537777#/ 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:05:08]               │
[00:05:08]               │ debg browser[INFO] http://localhost:6121/bundles/app/canvas/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:05:08]               │ debg currentUrl = http://localhost:6121/app/canvas#/
[00:05:08]               │          appUrl = http://localhost:6121/app/canvas#/
[00:05:08]               │ debg TestSubjects.find(kibanaChrome)
[00:05:08]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:05:18]               │ debg browser[INFO] http://localhost:6121/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-04-23T23:12:26Z
[00:05:18]               │        Adding connection to http://localhost:6121/elasticsearch
[00:05:18]               │
[00:05:18]               │      "
[00:05:18]               │ERROR browser[SEVERE] http://localhost:6121/bundles/commons.bundle.js 2:3746219 TypeError: spec is not a function
[00:05:18]               │          at http://localhost:6121/bundles/commons.bundle.js:3:6506912
[00:05:18]               │          at Array.map (<anonymous>)
[00:05:18]               │          at applyElementStrings (http://localhost:6121/bundles/commons.bundle.js:3:6506881)
[00:05:18]               │          at Object.3750 (http://localhost:6121/bundles/canvas.bundle.js:2:1054638)
[00:05:18]               │          at __webpack_require__ (http://localhost:6121/bundles/canvas.bundle.js:2:1564)
[00:05:18]               │          at Object.3749 (http://localhost:6121/bundles/canvas.bundle.js:2:1051884)
[00:05:18]               │          at __webpack_require__ (http://localhost:6121/bundles/canvas.bundle.js:2:1564)
[00:05:18]               │          at Object.3471 (http://localhost:6121/bundles/canvas.bundle.js:2:251710)
[00:05:18]               │          at __webpack_require__ (http://localhost:6121/bundles/canvas.bundle.js:2:1564)
[00:05:18]               │          at Object.3470 (http://localhost:6121/bundles/canvas.bundle.js:2:250955)
[00:05:18]               │ debg browser[INFO] http://localhost:6121/bundles/commons.bundle.js 2:3747227 "Detected an unhandled Promise rejection.
[00:05:18]               │      TypeError: spec is not a function"
[00:05:18]               │ERROR browser[SEVERE] http://localhost:6121/bundles/commons.bundle.js 2:6506911 Uncaught TypeError: spec is not a function
[00:06:02]               │ proc [kibana]   log   [23:13:13.944] [warning][plugins][taskManager][taskManager] Cancelling task lens_telemetry "Lens-lens_telemetry" as it expired at 2020-04-23T23:08:11.777Z after running for 06m 02s (with timeout set at 1m).
[00:06:02]               │ proc [kibana]   log   [23:13:13.951] [warning][plugins][taskManager][taskManager] Cancelling task vis_telemetry "oss_telemetry-vis_telemetry" as it expired at 2020-04-23T23:12:11.777Z after running for 06m 02s (with timeout set at 5m).
[00:06:09]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="kibanaChrome"])
[00:06:09]               │      Wait timed out after 61234ms
[00:06:10]               │ debg --- retry.tryForTime error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="kibanaChrome"])
[00:06:10]               │      Wait timed out after 61234ms
[00:06:10]               │          at /dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
[00:06:10]               │          at process._tickCallback (internal/process/next_tick.js:68:7)
[00:06:10]               │ info Taking screenshot "/dev/shm/workspace/kibana/x-pack/test/functional/screenshots/failure/Canvas app smoke test _before all_ hook.png"
[00:06:10]               │ info Current URL is: http://localhost:6121/app/canvas#/
[00:06:11]               │ info Saving page source to: /dev/shm/workspace/kibana/x-pack/test/functional/failure_debug/html/Canvas app smoke test _before all_ hook.html
[00:06:11]               └- ✖ fail: "Canvas app smoke test "before all" hook for "loads workpad list""
[00:06:11]               │

Stack Trace

Error: retry.tryForTime timeout: Error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="kibanaChrome"])
Wait timed out after 61234ms
    at /dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
    at process._tickCallback (internal/process/next_tick.js:68:7)
    at onFailure (/dev/shm/workspace/kibana/test/common/services/retry/retry_for_success.ts:28:9)
    at retryForSuccess (/dev/shm/workspace/kibana/test/common/services/retry/retry_for_success.ts:68:13)
    at onFailure (/dev/shm/workspace/kibana/test/common/services/retry/retry_for_success.ts:28:9)
    at retryForSuccess (/dev/shm/workspace/kibana/test/common/services/retry/retry_for_success.ts:68:13)

Kibana Pipeline / kibana-xpack-agent / Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/canvas/smoke_test·js.Canvas app smoke test "before all" hook for "loads workpad list"

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has not failed recently on tracked branches

[00:00:00]       │
[00:01:33]         └-: Canvas app
[00:01:33]           └-> "before all" hook
[00:01:33]           └-: smoke test
[00:01:33]             └-> "before all" hook
[00:01:33]             └-> "before all" hook
[00:01:33]               │ info [logstash_functional] Loading "mappings.json"
[00:01:33]               │ info [logstash_functional] Loading "data.json.gz"
[00:01:33]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1587679006027660455] applying create index request using v1 templates []
[00:01:33]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1587679006027660455] [logstash-2015.09.22] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:01:33]               │ info [logstash_functional] Created index "logstash-2015.09.22"
[00:01:33]               │ 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:01:33]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1587679006027660455] applying create index request using v1 templates []
[00:01:33]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1587679006027660455] [logstash-2015.09.20] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:01:33]               │ info [logstash_functional] Created index "logstash-2015.09.20"
[00:01:33]               │ 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:01:33]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1587679006027660455] applying create index request using v1 templates []
[00:01:33]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1587679006027660455] [logstash-2015.09.21] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:01:33]               │ info [logstash_functional] Created index "logstash-2015.09.21"
[00:01:33]               │ 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:01:43]               │ info progress: 8067
[00:01:48]               │ info [logstash_functional] Indexed 4634 docs into "logstash-2015.09.22"
[00:01:48]               │ info [logstash_functional] Indexed 4757 docs into "logstash-2015.09.20"
[00:01:48]               │ info [logstash_functional] Indexed 4614 docs into "logstash-2015.09.21"
[00:01:49]               │ info [canvas/default] Loading "mappings.json"
[00:01:49]               │ info [canvas/default] Loading "data.json.gz"
[00:01:49]               │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1587679006027660455] [.kibana_1/GrihhzkwSjG6oyMJGMV0Ew] deleting index
[00:01:49]               │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1587679006027660455] [.kibana_2/63I0L0TtRomKt1RqApkjsw] deleting index
[00:01:49]               │ info [canvas/default] Deleted existing index [".kibana_2",".kibana_1"]
[00:01:49]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1587679006027660455] applying create index request using v1 templates []
[00:01:49]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1587679006027660455] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:01:49]               │ info [canvas/default] Created index ".kibana_1"
[00:01:49]               │ debg [canvas/default] ".kibana_1" settings {"index":{"number_of_replicas":"1","number_of_shards":"1"}}
[00:01:49]               │ info [canvas/default] Indexed 3 docs into ".kibana_1"
[00:01:49]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xl-1587679006027660455] [.kibana_1/JuhLcvDoSPiKkWTj2-qO5g] update_mapping [_doc]
[00:01:49]               │ debg Migrating saved objects
[00:01:50]               │ proc [kibana]   log   [22:48:51.897] [info][savedobjects-service] Creating index .kibana_2.
[00:01:50]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1587679006027660455] applying create index request using v1 templates []
[00:01:50]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1587679006027660455] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:01:50]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xl-1587679006027660455] updating number_of_replicas to [0] for indices [.kibana_2]
[00:01:50]               │ proc [kibana]   log   [22:48:52.038] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:01:51]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xl-1587679006027660455] [.kibana_2/I0GtC6bYQxOQ51FNUY1I6w] update_mapping [_doc]
[00:01:51]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xl-1587679006027660455] [.kibana_2/I0GtC6bYQxOQ51FNUY1I6w] update_mapping [_doc]
[00:01:51]               │ proc [kibana]   log   [22:48:52.206] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:01:51]               │ proc [kibana]   log   [22:48:52.287] [info][savedobjects-service] Finished in 392ms.
[00:01:51]               │ debg navigating to canvas url: http://localhost:6121/app/canvas#/
[00:01:51]               │ debg navigate to: http://localhost:6121/app/canvas#/
[00:01:51]               │ proc [kibana]   log   [22:48:52.308] [info][authentication][plugins][security] Authentication attempt failed: [security_exception] unable to authenticate user [global_advanced_settings_read_user] for REST request [/_security/_authenticate], with { header={ WWW-Authenticate={ 0="ApiKey" & 1="Basic realm=\"security\" charset=\"UTF-8\"" } } }
[00:01:51]               │ERROR browser[SEVERE] http://localhost:6121/app/canvas?_t=1587682132295#/ - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:01:51]               │ debg ... sleep(700) start
[00:01:52]               │ debg ... sleep(700) end
[00:01:52]               │ debg returned from get, calling refresh
[00:01:52]               │ debg browser[INFO] http://localhost:6121/login?next=%2Fapp%2Fcanvas%3F_t%3D1587682132295#/ 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:01:52]               │
[00:01:52]               │ debg browser[INFO] http://localhost:6121/bundles/app/core/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:01:52]               │ debg currentUrl = http://localhost:6121/login?next=%2Fapp%2Fcanvas%3F_t%3D1587682132295#/
[00:01:52]               │          appUrl = http://localhost:6121/app/canvas#/
[00:01:52]               │ debg TestSubjects.find(kibanaChrome)
[00:01:52]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:02:00]               │ debg Found login page
[00:02:00]               │ debg TestSubjects.setValue(loginUsername, test_user)
[00:02:00]               │ debg TestSubjects.click(loginUsername)
[00:02:00]               │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:02:00]               │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:02:00]               │ debg browser[INFO] http://localhost:6121/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-04-23T22:49:00Z
[00:02:00]               │        Adding connection to http://localhost:6121/elasticsearch
[00:02:00]               │
[00:02:00]               │      "
[00:02:00]               │ debg TestSubjects.setValue(loginPassword, changeme)
[00:02:00]               │ debg TestSubjects.click(loginPassword)
[00:02:00]               │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:02:00]               │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:02:00]               │ debg TestSubjects.click(loginSubmit)
[00:02:00]               │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:02:00]               │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:02:00]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"] nav:not(.ng-hide)') with timeout=60000
[00:02:11]               │ debg browser[INFO] http://localhost:6121/app/canvas?_t=1587682132295#/ 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:02:11]               │
[00:02:11]               │ debg browser[INFO] http://localhost:6121/bundles/app/canvas/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:02:11]               │ debg browser[INFO] http://localhost:6121/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-04-23T22:49:08Z
[00:02:11]               │        Adding connection to http://localhost:6121/elasticsearch
[00:02:11]               │
[00:02:11]               │      "
[00:02:11]               │ERROR browser[SEVERE] http://localhost:6121/bundles/commons.bundle.js 2:3746219 TypeError: spec is not a function
[00:02:11]               │          at http://localhost:6121/bundles/commons.bundle.js:3:6506912
[00:02:11]               │          at Array.map (<anonymous>)
[00:02:11]               │          at applyElementStrings (http://localhost:6121/bundles/commons.bundle.js:3:6506881)
[00:02:11]               │          at Object.3750 (http://localhost:6121/bundles/canvas.bundle.js:2:1054638)
[00:02:11]               │          at __webpack_require__ (http://localhost:6121/bundles/canvas.bundle.js:2:1564)
[00:02:11]               │          at Object.3749 (http://localhost:6121/bundles/canvas.bundle.js:2:1051884)
[00:02:11]               │          at __webpack_require__ (http://localhost:6121/bundles/canvas.bundle.js:2:1564)
[00:02:11]               │          at Object.3471 (http://localhost:6121/bundles/canvas.bundle.js:2:251710)
[00:02:11]               │          at __webpack_require__ (http://localhost:6121/bundles/canvas.bundle.js:2:1564)
[00:02:11]               │          at Object.3470 (http://localhost:6121/bundles/canvas.bundle.js:2:250955)
[00:02:11]               │ debg browser[INFO] http://localhost:6121/bundles/commons.bundle.js 2:3747227 "Detected an unhandled Promise rejection.
[00:02:11]               │      TypeError: spec is not a function"
[00:02:11]               │ERROR browser[SEVERE] http://localhost:6121/bundles/commons.bundle.js 2:6506911 Uncaught TypeError: spec is not a function
[00:03:02]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="kibanaChrome"] nav:not(.ng-hide))
[00:03:02]               │      Wait timed out after 61219ms
[00:03:02]               │ debg navigate to: http://localhost:6121/app/canvas#/
[00:03:03]               │ debg browser[INFO] http://localhost:6121/app/canvas?_t=1587682203767#/ 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:03:03]               │
[00:03:03]               │ debg browser[INFO] http://localhost:6121/bundles/app/canvas/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:03:03]               │ debg ... sleep(700) start
[00:03:03]               │ debg ... sleep(700) end
[00:03:03]               │ debg returned from get, calling refresh
[00:03:06]               │ debg browser[INFO] http://localhost:6121/app/canvas?_t=1587682203767#/ 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:03:06]               │
[00:03:06]               │ debg browser[INFO] http://localhost:6121/bundles/app/canvas/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:03:06]               │ debg currentUrl = http://localhost:6121/app/canvas#/
[00:03:06]               │          appUrl = http://localhost:6121/app/canvas#/
[00:03:06]               │ debg TestSubjects.find(kibanaChrome)
[00:03:06]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:03:16]               │ debg browser[INFO] http://localhost:6121/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-04-23T22:50:14Z
[00:03:16]               │        Adding connection to http://localhost:6121/elasticsearch
[00:03:16]               │
[00:03:16]               │      "
[00:03:16]               │ERROR browser[SEVERE] http://localhost:6121/bundles/commons.bundle.js 2:3746219 TypeError: spec is not a function
[00:03:16]               │          at http://localhost:6121/bundles/commons.bundle.js:3:6506912
[00:03:16]               │          at Array.map (<anonymous>)
[00:03:16]               │          at applyElementStrings (http://localhost:6121/bundles/commons.bundle.js:3:6506881)
[00:03:16]               │          at Object.3750 (http://localhost:6121/bundles/canvas.bundle.js:2:1054638)
[00:03:16]               │          at __webpack_require__ (http://localhost:6121/bundles/canvas.bundle.js:2:1564)
[00:03:16]               │          at Object.3749 (http://localhost:6121/bundles/canvas.bundle.js:2:1051884)
[00:03:16]               │          at __webpack_require__ (http://localhost:6121/bundles/canvas.bundle.js:2:1564)
[00:03:16]               │          at Object.3471 (http://localhost:6121/bundles/canvas.bundle.js:2:251710)
[00:03:16]               │          at __webpack_require__ (http://localhost:6121/bundles/canvas.bundle.js:2:1564)
[00:03:16]               │          at Object.3470 (http://localhost:6121/bundles/canvas.bundle.js:2:250955)
[00:03:16]               │ debg browser[INFO] http://localhost:6121/bundles/commons.bundle.js 2:3747227 "Detected an unhandled Promise rejection.
[00:03:16]               │      TypeError: spec is not a function"
[00:03:16]               │ERROR browser[SEVERE] http://localhost:6121/bundles/commons.bundle.js 2:6506911 Uncaught TypeError: spec is not a function
[00:04:07]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="kibanaChrome"])
[00:04:07]               │      Wait timed out after 61141ms
[00:04:07]               │ debg --- retry.tryForTime error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="kibanaChrome"])
[00:04:07]               │      Wait timed out after 61141ms
[00:04:07]               │          at /dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
[00:04:07]               │          at process._tickCallback (internal/process/next_tick.js:68:7)
[00:04:08]               │ debg navigate to: http://localhost:6121/app/canvas#/
[00:04:08]               │ debg browser[INFO] http://localhost:6121/app/canvas?_t=1587682269331#/ 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:04:08]               │
[00:04:08]               │ debg browser[INFO] http://localhost:6121/bundles/app/canvas/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:04:08]               │ debg ... sleep(700) start
[00:04:09]               │ debg ... sleep(700) end
[00:04:09]               │ debg returned from get, calling refresh
[00:04:11]               │ debg browser[INFO] http://localhost:6121/app/canvas?_t=1587682269331#/ 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:04:11]               │
[00:04:11]               │ debg browser[INFO] http://localhost:6121/bundles/app/canvas/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:04:11]               │ debg currentUrl = http://localhost:6121/app/canvas#/
[00:04:11]               │          appUrl = http://localhost:6121/app/canvas#/
[00:04:11]               │ debg TestSubjects.find(kibanaChrome)
[00:04:11]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:04:21]               │ debg browser[INFO] http://localhost:6121/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-04-23T22:51:18Z
[00:04:21]               │        Adding connection to http://localhost:6121/elasticsearch
[00:04:21]               │
[00:04:21]               │      "
[00:04:21]               │ERROR browser[SEVERE] http://localhost:6121/bundles/commons.bundle.js 2:3746219 TypeError: spec is not a function
[00:04:21]               │          at http://localhost:6121/bundles/commons.bundle.js:3:6506912
[00:04:21]               │          at Array.map (<anonymous>)
[00:04:21]               │          at applyElementStrings (http://localhost:6121/bundles/commons.bundle.js:3:6506881)
[00:04:21]               │          at Object.3750 (http://localhost:6121/bundles/canvas.bundle.js:2:1054638)
[00:04:21]               │          at __webpack_require__ (http://localhost:6121/bundles/canvas.bundle.js:2:1564)
[00:04:21]               │          at Object.3749 (http://localhost:6121/bundles/canvas.bundle.js:2:1051884)
[00:04:21]               │          at __webpack_require__ (http://localhost:6121/bundles/canvas.bundle.js:2:1564)
[00:04:21]               │          at Object.3471 (http://localhost:6121/bundles/canvas.bundle.js:2:251710)
[00:04:21]               │          at __webpack_require__ (http://localhost:6121/bundles/canvas.bundle.js:2:1564)
[00:04:21]               │          at Object.3470 (http://localhost:6121/bundles/canvas.bundle.js:2:250955)
[00:04:21]               │ debg browser[INFO] http://localhost:6121/bundles/commons.bundle.js 2:3747227 "Detected an unhandled Promise rejection.
[00:04:21]               │      TypeError: spec is not a function"
[00:04:21]               │ERROR browser[SEVERE] http://localhost:6121/bundles/commons.bundle.js 2:6506911 Uncaught TypeError: spec is not a function
[00:05:12]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="kibanaChrome"])
[00:05:12]               │      Wait timed out after 61203ms
[00:05:12]               │ debg navigate to: http://localhost:6121/app/canvas#/
[00:05:13]               │ debg browser[INFO] http://localhost:6121/app/canvas?_t=1587682333910#/ 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:05:13]               │
[00:05:13]               │ debg browser[INFO] http://localhost:6121/bundles/app/canvas/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:05:13]               │ debg ... sleep(700) start
[00:05:13]               │ debg ... sleep(700) end
[00:05:13]               │ debg returned from get, calling refresh
[00:05:15]               │ debg browser[INFO] http://localhost:6121/app/canvas?_t=1587682333910#/ 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:05:15]               │
[00:05:15]               │ debg browser[INFO] http://localhost:6121/bundles/app/canvas/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:05:15]               │ debg currentUrl = http://localhost:6121/app/canvas#/
[00:05:15]               │          appUrl = http://localhost:6121/app/canvas#/
[00:05:15]               │ debg TestSubjects.find(kibanaChrome)
[00:05:15]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:05:25]               │ debg browser[INFO] http://localhost:6121/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-04-23T22:52:22Z
[00:05:25]               │        Adding connection to http://localhost:6121/elasticsearch
[00:05:25]               │
[00:05:25]               │      "
[00:05:25]               │ERROR browser[SEVERE] http://localhost:6121/bundles/commons.bundle.js 2:3746219 TypeError: spec is not a function
[00:05:25]               │          at http://localhost:6121/bundles/commons.bundle.js:3:6506912
[00:05:25]               │          at Array.map (<anonymous>)
[00:05:25]               │          at applyElementStrings (http://localhost:6121/bundles/commons.bundle.js:3:6506881)
[00:05:25]               │          at Object.3750 (http://localhost:6121/bundles/canvas.bundle.js:2:1054638)
[00:05:25]               │          at __webpack_require__ (http://localhost:6121/bundles/canvas.bundle.js:2:1564)
[00:05:25]               │          at Object.3749 (http://localhost:6121/bundles/canvas.bundle.js:2:1051884)
[00:05:25]               │          at __webpack_require__ (http://localhost:6121/bundles/canvas.bundle.js:2:1564)
[00:05:25]               │          at Object.3471 (http://localhost:6121/bundles/canvas.bundle.js:2:251710)
[00:05:25]               │          at __webpack_require__ (http://localhost:6121/bundles/canvas.bundle.js:2:1564)
[00:05:25]               │          at Object.3470 (http://localhost:6121/bundles/canvas.bundle.js:2:250955)
[00:05:25]               │ debg browser[INFO] http://localhost:6121/bundles/commons.bundle.js 2:3747227 "Detected an unhandled Promise rejection.
[00:05:25]               │      TypeError: spec is not a function"
[00:05:25]               │ERROR browser[SEVERE] http://localhost:6121/bundles/commons.bundle.js 2:6506911 Uncaught TypeError: spec is not a function
[00:06:03]               │ proc [kibana]   log   [22:53:04.104] [warning][plugins][taskManager][taskManager] Cancelling task lens_telemetry "Lens-lens_telemetry" as it expired at 2020-04-23T22:48:01.862Z after running for 06m 02s (with timeout set at 1m).
[00:06:03]               │ proc [kibana]   log   [22:53:04.106] [warning][plugins][taskManager][taskManager] Cancelling task vis_telemetry "oss_telemetry-vis_telemetry" as it expired at 2020-04-23T22:52:01.862Z after running for 06m 02s (with timeout set at 5m).
[00:06:16]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="kibanaChrome"])
[00:06:16]               │      Wait timed out after 61179ms
[00:06:17]               │ debg --- retry.tryForTime error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="kibanaChrome"])
[00:06:17]               │      Wait timed out after 61179ms
[00:06:17]               │          at /dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
[00:06:17]               │          at process._tickCallback (internal/process/next_tick.js:68:7)
[00:06:17]               │ info Taking screenshot "/dev/shm/workspace/kibana/x-pack/test/functional/screenshots/failure/Canvas app smoke test _before all_ hook.png"
[00:06:18]               │ info Current URL is: http://localhost:6121/app/canvas#/
[00:06:18]               │ info Saving page source to: /dev/shm/workspace/kibana/x-pack/test/functional/failure_debug/html/Canvas app smoke test _before all_ hook.html
[00:06:18]               └- ✖ fail: "Canvas app smoke test "before all" hook for "loads workpad list""
[00:06:18]               │

Stack Trace

Error: retry.tryForTime timeout: Error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="kibanaChrome"])
Wait timed out after 61179ms
    at /dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
    at process._tickCallback (internal/process/next_tick.js:68:7)
    at onFailure (/dev/shm/workspace/kibana/test/common/services/retry/retry_for_success.ts:28:9)
    at retryForSuccess (/dev/shm/workspace/kibana/test/common/services/retry/retry_for_success.ts:68:13)
    at onFailure (/dev/shm/workspace/kibana/test/common/services/retry/retry_for_success.ts:28:9)
    at retryForSuccess (/dev/shm/workspace/kibana/test/common/services/retry/retry_for_success.ts:68:13)

Kibana Pipeline / kibana-xpack-agent / Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/spaces/enter_space·ts.Spaces app Enter Space allows user to navigate to different spaces, respecting the configured default route

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has not failed recently on tracked branches

[00:00:00]       │
[00:18:34]         └-: Spaces app
[00:18:34]           └-> "before all" hook
[00:23:47]           └-: Enter Space
[00:23:47]             └-> "before all" hook
[00:23:47]             └-> "before all" hook
[00:23:47]               │ info [spaces/enter_space] Loading "mappings.json"
[00:23:47]               │ info [spaces/enter_space] Loading "data.json"
[00:23:47]               │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1587679006027660455] [.kibana_1/DxAew_E9Sky7YQwGc6uVOQ] deleting index
[00:23:47]               │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1587679006027660455] [.kibana_2/i2KsM2gARW-yXWH3zZHNpQ] deleting index
[00:23:47]               │ info [spaces/enter_space] Deleted existing index [".kibana_2",".kibana_1"]
[00:23:47]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1587679006027660455] applying create index request using v1 templates []
[00:23:47]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1587679006027660455] [.kibana] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:23:47]               │ info [spaces/enter_space] Created index ".kibana"
[00:23:47]               │ debg [spaces/enter_space] ".kibana" settings {"index":{"number_of_replicas":"1","number_of_shards":"1"}}
[00:23:47]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xl-1587679006027660455] [.kibana/CUyIsUAqTW-rjYIZZ0BuTQ] update_mapping [_doc]
[00:23:47]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xl-1587679006027660455] [.kibana/CUyIsUAqTW-rjYIZZ0BuTQ] update_mapping [_doc]
[00:23:47]               │ info [spaces/enter_space] Indexed 5 docs into ".kibana"
[00:23:47]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xl-1587679006027660455] [.kibana/CUyIsUAqTW-rjYIZZ0BuTQ] update_mapping [_doc]
[00:23:47]               │ debg Migrating saved objects
[00:23:48]               │ proc [kibana]   log   [23:00:14.033] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:23:48]               │ proc [kibana]   log   [23:00:14.062] [info][savedobjects-service] Creating index .kibana_2.
[00:23:48]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1587679006027660455] applying create index request using v1 templates []
[00:23:48]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1587679006027660455] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:23:48]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xl-1587679006027660455] updating number_of_replicas to [0] for indices [.kibana_2]
[00:23:48]               │ proc [kibana]   log   [23:00:14.147] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:23:48]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1587679006027660455] applying create index request using v1 templates []
[00:23:48]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1587679006027660455] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:23:48]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xl-1587679006027660455] updating number_of_replicas to [0] for indices [.kibana_1]
[00:23:48]               │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-18-tests-xl-1587679006027660455] 31054 finished with response BulkByScrollResponse[took=42.1ms,timed_out=false,sliceId=null,updated=0,created=6,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:23:48]               │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1587679006027660455] [.kibana/CUyIsUAqTW-rjYIZZ0BuTQ] deleting index
[00:23:48]               │ proc [kibana]   log   [23:00:14.525] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:23:48]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xl-1587679006027660455] [.kibana_2/1QXXrxg2SA6izKL7QU_Niw] update_mapping [_doc]
[00:23:48]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xl-1587679006027660455] [.kibana_2/1QXXrxg2SA6izKL7QU_Niw] update_mapping [_doc]
[00:23:48]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xl-1587679006027660455] [.kibana_2/1QXXrxg2SA6izKL7QU_Niw] update_mapping [_doc]
[00:23:48]               │ proc [kibana]   log   [23:00:14.730] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:23:48]               │ proc [kibana]   log   [23:00:14.779] [info][savedobjects-service] Finished in 718ms.
[00:23:48]               │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC"}
[00:23:49]               │ proc [kibana]   log   [23:00:14.856] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:23:49]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xl-1587679006027660455] [.kibana_2/1QXXrxg2SA6izKL7QU_Niw] update_mapping [_doc]
[00:23:49]               │ proc [kibana]   log   [23:00:15.146] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:23:49]               │ debg SecurityPage.forceLogout
[00:23:49]               │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=100
[00:23:49]               │ debg Already on the login page, not forcing anything
[00:23:49]             └-> falls back to the default home page when the configured default route is malformed
[00:23:49]               └-> "before each" hook: global before each
[00:23:49]               │ debg navigating to login url: http://localhost:6141/login
[00:23:49]               │ debg navigate to: http://localhost:6141/login
[00:23:49]               │ debg browser[INFO] http://localhost:6141/login?_t=1587682815184 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:23:49]               │
[00:23:49]               │ debg browser[INFO] http://localhost:6141/bundles/app/core/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:23:49]               │ debg ... sleep(700) start
[00:23:50]               │ debg ... sleep(700) end
[00:23:50]               │ debg returned from get, calling refresh
[00:23:50]               │ debg browser[INFO] http://localhost:6141/login?_t=1587682815184 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:23:50]               │
[00:23:50]               │ debg browser[INFO] http://localhost:6141/bundles/app/core/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:23:50]               │ debg currentUrl = http://localhost:6141/login
[00:23:50]               │          appUrl = http://localhost:6141/login
[00:23:50]               │ debg TestSubjects.find(kibanaChrome)
[00:23:50]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:23:54]               │ debg browser[INFO] http://localhost:6141/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-04-23T23:00:19Z
[00:23:54]               │        Adding connection to http://localhost:6141/elasticsearch
[00:23:54]               │
[00:23:54]               │      "
[00:23:54]               │ debg ... sleep(501) start
[00:23:54]               │ debg ... sleep(501) end
[00:23:54]               │ debg in navigateTo url = http://localhost:6141/login
[00:23:54]               │ debg TestSubjects.exists(statusPageContainer)
[00:23:54]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:23:57]               │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:23:57]               │ debg TestSubjects.setValue(loginUsername, elastic)
[00:23:57]               │ debg TestSubjects.click(loginUsername)
[00:23:57]               │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:23:57]               │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:23:58]               │ debg TestSubjects.setValue(loginPassword, changeme)
[00:23:58]               │ debg TestSubjects.click(loginPassword)
[00:23:58]               │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:23:58]               │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:23:58]               │ debg TestSubjects.click(loginSubmit)
[00:23:58]               │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:23:58]               │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:23:58]               │ debg TestSubjects.find(kibanaSpaceSelector)
[00:23:58]               │ debg Find.findByCssSelector('[data-test-subj="kibanaSpaceSelector"]') with timeout=10000
[00:23:58]               │ proc [kibana]   log   [23:00:24.344] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:23:58]               │ proc [kibana]   log   [23:00:24.371] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:23:58]               │ proc [kibana]   log   [23:00:24.506] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:23:58]               │ proc [kibana]   log   [23:00:24.515] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:24:01]               │ proc [kibana]   log   [23:00:27.630] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:24:01]               │ proc [kibana]   log   [23:00:27.652] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:24:01]               │ proc [kibana]   log   [23:00:27.743] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:24:02]               │ proc [kibana]   log   [23:00:27.810] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:24:02]               │ proc [kibana]   log   [23:00:27.826] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:24:02]               │ proc [kibana]   log   [23:00:27.895] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:24:02]               │ debg browser[INFO] http://localhost:6141/spaces/space_selector 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:24:02]               │
[00:24:02]               │ debg browser[INFO] http://localhost:6141/bundles/app/core/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:24:02]               │ debg browser[INFO] http://localhost:6141/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-04-23T23:00:27Z
[00:24:02]               │        Adding connection to http://localhost:6141/elasticsearch
[00:24:02]               │
[00:24:02]               │      "
[00:24:02]               │ proc [kibana]   log   [23:00:27.937] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:24:02]               │ debg Finished login process, landed on space selector. currentUrl = http://localhost:6141/spaces/space_selector
[00:24:02]               │ info SpaceSelectorPage:clickSpaceCard(default)
[00:24:02]               │ debg TestSubjects.click(space-card-default)
[00:24:02]               │ debg Find.clickByCssSelector('[data-test-subj="space-card-default"]') with timeout=10000
[00:24:02]               │ debg Find.findByCssSelector('[data-test-subj="space-card-default"]') with timeout=10000
[00:24:02]               │ proc [kibana]   log   [23:00:28.037] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:24:02]               │ proc [kibana]   log   [23:00:28.048] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:24:02]               │ proc [kibana]   log   [23:00:28.137] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:24:02]               │ proc [kibana]   log   [23:00:28.148] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:24:02]               │ proc [kibana]   log   [23:00:28.198] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:24:02]               │ proc [kibana]   log   [23:00:28.235] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:24:02]               │ proc [kibana]   log   [23:00:28.328] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:24:02]               │ proc [kibana]   log   [23:00:28.336] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:24:02]               │ debg ... sleep(1000) start
[00:24:02]               │ debg browser[INFO] http://localhost:6141/app/kibana 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:24:02]               │
[00:24:02]               │ debg browser[INFO] http://localhost:6141/bundles/app/kibana/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:24:03]               │ debg ... sleep(1000) end
[00:24:03]               │ debg expectRoute(default, /app/kibana#/home)
[00:24:03]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"] nav:not(.ng-hide) ') with timeout=20000
[00:24:06]               │ proc [kibana]   log   [23:00:32.252] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:24:06]               │ proc [kibana]   log   [23:00:32.311] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:24:06]               │ proc [kibana]   log   [23:00:32.453] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:24:06]               │ proc [kibana]   log   [23:00:32.466] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:24:07]               │ debg browser[INFO] http://localhost:6141/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-04-23T23:00:32Z
[00:24:07]               │        Adding connection to http://localhost:6141/elasticsearch
[00:24:07]               │
[00:24:07]               │      "
[00:24:08]               │ proc [kibana]   log   [23:00:33.817] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:24:08]               │ proc [kibana]   log   [23:00:33.827] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:24:08]               │ proc [kibana]   log   [23:00:33.829] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:24:08]               │ proc [kibana]   log   [23:00:33.941] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:24:08]               └- ✓ pass  (18.8s) "Spaces app Enter Space falls back to the default home page when the configured default route is malformed"
[00:24:08]             └-> "after each" hook
[00:24:08]               │ debg SecurityPage.forceLogout
[00:24:08]               │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=100
[00:24:08]               │ debg --- retry.tryForTime error: .login-form is not displayed
[00:24:08]               │ debg Redirecting to /logout to force the logout
[00:24:08]               │ proc [kibana]   log   [23:00:34.753] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:24:08]               │ proc [kibana]   log   [23:00:34.768] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:24:08]               │ debg Waiting on the login form to appear
[00:24:08]               │ debg Waiting up to 100000ms for login form...
[00:24:08]               │ debg browser[INFO] http://localhost:6141/logout?_t=1587682834630 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:24:08]               │
[00:24:08]               │ debg browser[INFO] http://localhost:6141/bundles/app/core/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:24:08]               │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:24:12]               │ debg --- retry.tryForTime error: .login-form is not displayed
[00:24:12]               │ debg browser[INFO] http://localhost:6141/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-04-23T23:00:37Z
[00:24:12]               │        Adding connection to http://localhost:6141/elasticsearch
[00:24:12]               │
[00:24:12]               │      "
[00:24:12]               │ proc [kibana]   log   [23:00:38.096] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:24:12]               │ debg browser[INFO] http://localhost:6141/login?_t=1587682834630 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:24:12]               │
[00:24:12]               │ debg browser[INFO] http://localhost:6141/bundles/app/core/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:24:13]               │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:24:15]               │ debg browser[INFO] http://localhost:6141/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-04-23T23:00:41Z
[00:24:15]               │        Adding connection to http://localhost:6141/elasticsearch
[00:24:15]               │
[00:24:15]               │      "
[00:24:15]               │ debg --- retry.tryForTime error: .login-form is not displayed
[00:24:16]               │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:24:16]             └-> allows user to navigate to different spaces, respecting the configured default route
[00:24:16]               └-> "before each" hook: global before each
[00:24:16]               │ debg navigating to login url: http://localhost:6141/login
[00:24:16]               │ debg navigate to: http://localhost:6141/login
[00:24:16]               │ debg ... sleep(700) start
[00:24:16]               │ debg browser[INFO] http://localhost:6141/login?_t=1587682842568 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:24:16]               │
[00:24:16]               │ debg browser[INFO] http://localhost:6141/bundles/app/core/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:24:17]               │ debg ... sleep(700) end
[00:24:17]               │ debg returned from get, calling refresh
[00:24:17]               │ debg browser[INFO] http://localhost:6141/login?_t=1587682842568 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:24:17]               │
[00:24:17]               │ debg browser[INFO] http://localhost:6141/bundles/app/core/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:24:17]               │ debg currentUrl = http://localhost:6141/login
[00:24:17]               │          appUrl = http://localhost:6141/login
[00:24:17]               │ debg TestSubjects.find(kibanaChrome)
[00:24:17]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:24:21]               │ debg browser[INFO] http://localhost:6141/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-04-23T23:00:47Z
[00:24:21]               │        Adding connection to http://localhost:6141/elasticsearch
[00:24:21]               │
[00:24:21]               │      "
[00:24:21]               │ debg ... sleep(501) start
[00:24:21]               │ debg ... sleep(501) end
[00:24:21]               │ debg in navigateTo url = http://localhost:6141/login
[00:24:21]               │ debg TestSubjects.exists(statusPageContainer)
[00:24:21]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:24:24]               │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:24:24]               │ debg TestSubjects.setValue(loginUsername, elastic)
[00:24:24]               │ debg TestSubjects.click(loginUsername)
[00:24:24]               │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:24:24]               │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:24:25]               │ debg TestSubjects.setValue(loginPassword, changeme)
[00:24:25]               │ debg TestSubjects.click(loginPassword)
[00:24:25]               │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:24:25]               │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:24:25]               │ debg TestSubjects.click(loginSubmit)
[00:24:25]               │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:24:25]               │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:24:25]               │ debg TestSubjects.find(kibanaSpaceSelector)
[00:24:25]               │ debg Find.findByCssSelector('[data-test-subj="kibanaSpaceSelector"]') with timeout=10000
[00:24:25]               │ proc [kibana]   log   [23:00:51.370] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:24:25]               │ proc [kibana]   log   [23:00:51.391] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:24:25]               │ proc [kibana]   log   [23:00:51.498] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:24:25]               │ proc [kibana]   log   [23:00:51.508] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:24:29]               │ proc [kibana]   log   [23:00:54.911] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:24:29]               │ proc [kibana]   log   [23:00:54.949] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:24:29]               │ proc [kibana]   log   [23:00:55.081] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:24:29]               │ proc [kibana]   log   [23:00:55.196] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:24:29]               │ proc [kibana]   log   [23:00:55.246] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:24:29]               │ debg browser[INFO] http://localhost:6141/spaces/space_selector 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:24:29]               │
[00:24:29]               │ debg browser[INFO] http://localhost:6141/bundles/app/core/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:24:29]               │ debg browser[INFO] http://localhost:6141/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-04-23T23:00:54Z
[00:24:29]               │        Adding connection to http://localhost:6141/elasticsearch
[00:24:29]               │
[00:24:29]               │      "
[00:24:29]               │ debg Finished login process, landed on space selector. currentUrl = http://localhost:6141/spaces/space_selector
[00:24:29]               │ info SpaceSelectorPage:clickSpaceCard(another-space)
[00:24:29]               │ debg TestSubjects.click(space-card-another-space)
[00:24:29]               │ debg Find.clickByCssSelector('[data-test-subj="space-card-another-space"]') with timeout=10000
[00:24:29]               │ debg Find.findByCssSelector('[data-test-subj="space-card-another-space"]') with timeout=10000
[00:24:29]               │ proc [kibana]   log   [23:00:55.405] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:24:29]               │ proc [kibana]   log   [23:00:55.424] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:24:29]               │ proc [kibana]   log   [23:00:55.557] [warning][ui-settings-service] Ignore invalid UiSettings value. Error: [validation [defaultRoute]]: Must be a relative URL..
[00:24:30]               │ debg ... sleep(1000) start
[00:24:30]               │ debg browser[INFO] http://localhost:6141/s/another-space/app/canvas 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:24:30]               │
[00:24:30]               │ debg browser[INFO] http://localhost:6141/s/another-space/bundles/app/canvas/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:24:31]               │ debg ... sleep(1000) end
[00:24:31]               │ debg expectRoute(another-space, /app/canvas)
[00:24:31]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"] nav:not(.ng-hide) ') with timeout=20000
[00:24:42]               │ debg browser[INFO] http://localhost:6141/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-04-23T23:01:04Z
[00:24:42]               │        Adding connection to http://localhost:6141/s/another-space/elasticsearch
[00:24:42]               │
[00:24:42]               │      "
[00:24:42]               │ERROR browser[SEVERE] http://localhost:6141/bundles/commons.bundle.js 2:3736007 TypeError: spec is not a function
[00:24:42]               │          at http://localhost:6141/bundles/commons.bundle.js:3:6488730
[00:24:42]               │          at Array.map (<anonymous>)
[00:24:42]               │          at applyElementStrings (http://localhost:6141/bundles/commons.bundle.js:3:6488699)
[00:24:42]               │          at Object.3746 (http://localhost:6141/bundles/canvas.bundle.js:2:1048090)
[00:24:42]               │          at __webpack_require__ (http://localhost:6141/bundles/canvas.bundle.js:2:1564)
[00:24:42]               │          at Object.3745 (http://localhost:6141/bundles/canvas.bundle.js:2:1045336)
[00:24:42]               │          at __webpack_require__ (http://localhost:6141/bundles/canvas.bundle.js:2:1564)
[00:24:42]               │          at Object.3467 (http://localhost:6141/bundles/canvas.bundle.js:2:251180)
[00:24:42]               │          at __webpack_require__ (http://localhost:6141/bundles/canvas.bundle.js:2:1564)
[00:24:42]               │          at Object.3466 (http://localhost:6141/bundles/canvas.bundle.js:2:250425)
[00:24:42]               │ debg browser[INFO] http://localhost:6141/bundles/commons.bundle.js 2:3737009 "Detected an unhandled Promise rejection.
[00:24:42]               │      TypeError: spec is not a function"
[00:24:42]               │ERROR browser[SEVERE] http://localhost:6141/bundles/commons.bundle.js 2:6488729 Uncaught TypeError: spec is not a function
[00:24:52]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="kibanaChrome"] nav:not(.ng-hide) )
[00:24:52]               │      Wait timed out after 20703ms
[00:24:52]               │ debg expectRoute(another-space, /app/canvas)
[00:24:52]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"] nav:not(.ng-hide) ') with timeout=20000
[00:25:01]               │ proc [kibana]   log   [23:01:27.687] [warning][plugins][taskManager][taskManager] Cancelling task lens_telemetry "Lens-lens_telemetry" as it expired at 2020-04-23T22:54:26.989Z after running for 08m 00s (with timeout set at 1m).
[00:25:13]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="kibanaChrome"] nav:not(.ng-hide) )
[00:25:13]               │      Wait timed out after 20266ms
[00:25:13]               │ debg expectRoute(another-space, /app/canvas)
[00:25:13]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"] nav:not(.ng-hide) ') with timeout=20000
[00:25:33]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="kibanaChrome"] nav:not(.ng-hide) )
[00:25:33]               │      Wait timed out after 20249ms
[00:25:34]               │ debg expectRoute(another-space, /app/canvas)
[00:25:34]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"] nav:not(.ng-hide) ') with timeout=20000
[00:25:54]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="kibanaChrome"] nav:not(.ng-hide) )
[00:25:54]               │      Wait timed out after 20255ms
[00:25:55]               │ debg expectRoute(another-space, /app/canvas)
[00:25:55]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"] nav:not(.ng-hide) ') with timeout=20000
[00:26:15]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="kibanaChrome"] nav:not(.ng-hide) )
[00:26:15]               │      Wait timed out after 20243ms
[00:26:15]               │ debg expectRoute(another-space, /app/canvas)
[00:26:15]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"] nav:not(.ng-hide) ') with timeout=20000
[00:26:36]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="kibanaChrome"] nav:not(.ng-hide) )
[00:26:36]               │      Wait timed out after 20256ms
[00:26:36]               │ info Taking screenshot "/dev/shm/workspace/kibana/x-pack/test/functional/screenshots/failure/Spaces app Enter Space allows user to navigate to different spaces_ respecting the configured default route.png"
[00:26:36]               │ info Current URL is: http://localhost:6141/s/another-space/app/canvas
[00:26:37]               │ info Saving page source to: /dev/shm/workspace/kibana/x-pack/test/functional/failure_debug/html/Spaces app Enter Space allows user to navigate to different spaces_ respecting the configured default route.html
[00:26:37]               └- ✖ fail: "Spaces app Enter Space allows user to navigate to different spaces, respecting the configured default route"
[00:26:37]               │

Stack Trace

Error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="kibanaChrome"] nav:not(.ng-hide) )
Wait timed out after 20256ms
    at /dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
    at process._tickCallback (internal/process/next_tick.js:68:7)
    at onFailure (/dev/shm/workspace/kibana/test/common/services/retry/retry_for_success.ts:28:9)
    at retryForSuccess (/dev/shm/workspace/kibana/test/common/services/retry/retry_for_success.ts:68:13)

History

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

@cqliu1 cqliu1 closed this Apr 24, 2020
@cqliu1 cqliu1 deleted the backport/7.x/pr-59982 branch April 24, 2020 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants