Skip to content

[Canvas] Integrates Solution Toolbar#94489

Closed
cqliu1 wants to merge 53 commits intoelastic:canvas/by-value-embeddablesfrom
cqliu1:canvas/panel-toolbar
Closed

[Canvas] Integrates Solution Toolbar#94489
cqliu1 wants to merge 53 commits intoelastic:canvas/by-value-embeddablesfrom
cqliu1:canvas/panel-toolbar

Conversation

@cqliu1
Copy link
Contributor

@cqliu1 cqliu1 commented Mar 11, 2021

Summary

Related to #85666.
Blocked by #94139.

This integrates the SolutionToolbar component from presentation_util into the Canvas workpad header and aligns the UI for adding content in Dashboard and Canvas.

Screen Shot 2021-03-22 at 3 14 02 PM

Checklist

Delete any items that are not applicable to this PR.

For maintainers

@cqliu1 cqliu1 force-pushed the canvas/panel-toolbar branch from 5f53c71 to 01253b5 Compare March 11, 2021 20:59
@cqliu1 cqliu1 changed the title [Canvas] Integrates Panel Toolbar [Canvas] Integrates Solution Toolbar Mar 22, 2021
@cqliu1 cqliu1 force-pushed the canvas/panel-toolbar branch 3 times, most recently from c9e03dd to fd3b0d7 Compare March 25, 2021 18:34
@cqliu1 cqliu1 force-pushed the canvas/panel-toolbar branch 3 times, most recently from 2afc3c2 to 2097380 Compare March 31, 2021 20:43
@cqliu1 cqliu1 added Feature:Canvas Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t// labels Apr 2, 2021
@cqliu1 cqliu1 force-pushed the canvas/panel-toolbar branch from 2097380 to 8e08918 Compare April 2, 2021 23:24
@cqliu1 cqliu1 force-pushed the canvas/panel-toolbar branch from 8e08918 to 1734041 Compare April 20, 2021 21:18
dokmic and others added 5 commits September 27, 2021 18:54
* Update mapColumn expression function implementation to support partial results
* Add partial results example plugin
)

* [Stack Monitoring] Convert setup directory to typescript

* Fix types

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
elastic#112696)

* [Stack Monitoring] Convert standalone_clusters directory to typescript

* Fix types

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
…lastic#113031)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
@cqliu1 cqliu1 changed the base branch from master to canvas/by-value-embeddables September 27, 2021 18:01
Spencer and others added 9 commits September 27, 2021 13:04
Co-authored-by: spalger <spalger@users.noreply.github.com>
* [Reporting] Stabilize CSV export tests

* add debugging logging for results metadata

* restore accidentally deleted tests

* restore "large export" test

* remove redundant availability test

* do not filter and re-save

* fix getHitCount

* fix large export test

* skip large export test :(

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
… right Y axes (elastic#113073)

* [Viz] legend duplicates percentile options when chart has both left & right Y axes

* Update comment for isPercentileIdEqualToSeriesId

* Remove Dimension interface

* Replace partial aspect with whole aspect value

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
…tic#113161)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
@cqliu1 cqliu1 mentioned this pull request Sep 27, 2021
13 tasks
@cqliu1 cqliu1 force-pushed the canvas/panel-toolbar branch 2 times, most recently from 47f1a8a to 0d3f883 Compare September 27, 2021 22:04
mistic and others added 26 commits September 28, 2021 11:57
* add `SavedObjectType.management.displayName`

* fix unit tests

* add FTR test

* update generated doc

* also update labels

* fix unit tests
…lastic#112930)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* Beats instance page

* Remove unused getPaginationRouteOptions
…ic#112849)

* updated jest tests to avoid generating unhandled promise rejections

* rather use throwError

* remove unused imports

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* Move workpad components to typescript

* Fix types

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* [FieldFormatters] Use default values for URL formatter
* Write plugin directory doc as part of api docs build.

* Replace service folder with the new name for index patterns

* Updated docs

* small update

* update docs
* Refactor useUrlStateHooks by batching updates to location

* Delete unused detail name

* Delete URL_STATE_KEYS constants

* Refactor useUrlStateHook

* Fix cypress tests by removing empty AppQuery from URL query string

Fix empty query validation by considering 'query=()' as empty

* Small code readability improvements

It mostly rename variables
…lastic#113213)

* [Alerting] Fixed Jest test suites with unhandled promise rejections

* fixed typecheck
…ate dashboard button elastic#111233 (elastic#112872)

* test if 2s sleep fixes flakey test

* switch from sleep to retry.waitFor

* remove .only, add comments to config file about sample data add/remove

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* Remove RFCs from our repository.

* Revert "Remove RFCs from our repository."

This reverts commit e97e3fb.

* rename folder, and update readme.
Add `?*` to the end of request aliases in instances table tests.

elastic#104301 upgraded Cypress to a newer version that required this, but the APM E2E tests were not run because there were no changes to any files in APM.
@cqliu1 cqliu1 force-pushed the canvas/panel-toolbar branch from 0d3f883 to 2671699 Compare September 28, 2021 20:40
@cqliu1 cqliu1 closed this Sep 28, 2021
@cqliu1
Copy link
Contributor Author

cqliu1 commented Sep 28, 2021

Closed in favor of #113329.

@kibanamachine
Copy link
Contributor

kibanamachine commented Sep 28, 2021

💔 Build Failed

Failed CI Steps


Test Failures

Kibana Pipeline / jest / Jest Tests.x-pack/plugins/uptime/public/components/overview/query_bar.useQueryBar updates URL only when conditions are appropriate

Link to Jenkins

Standard Out

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


Stack Trace

Error: expect(jest.fn()).toHaveBeenCalledTimes(expected)

Expected number of calls: 1
Received number of calls: 2

<html>
  <head>
    <style
      id="ace_editor.css"
    >
      .ace_editor {position: relative;overflow: hidden;font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;direction: ltr;text-align: left;-webkit-tap-highlight-color: rgba(0, 0, 0, 0);}.ace_scroller {position: absolute;overflow: hidden;top: 0;bottom: 0;background-color: inherit;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;cursor: text;}.ace_content {position: absolute;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;min-width: 100%;}.ace_dragging .ace_scroller:before{position: absolute;top: 0;left: 0;right: 0;bottom: 0;content: '';background: rgba(250, 250, 250, 0.01);z-index: 1000;}.ace_dragging.ace_dark .ace_scroller:before{background: rgba(0, 0, 0, 0.01);}.ace_selecting, .ace_selecting * {cursor: text !important;}.ace_gutter {position: absolute;overflow : hidden;width: auto;top: 0;bottom: 0;left: 0;cursor: default;z-index: 4;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;}.ace_gutter-active-line {position: absolute;left: 0;right: 0;}.ace_scroller.ace_scroll-left {box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;}.ace_gutter-cell {padding-left: 19px;padding-right: 6px;background-repeat: no-repeat;}.ace_gutter-cell.ace_error {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: 2px center;}.ace_gutter-cell.ace_warning {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");background-position: 2px center;}.ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");background-position: 2px center;}.ace_dark .ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");}.ace_scrollbar {position: absolute;right: 0;bottom: 0;z-index: 6;}.ace_scrollbar-inner {position: absolute;cursor: text;left: 0;top: 0;}.ace_scrollbar-v{overflow-x: hidden;overflow-y: scroll;top: 0;}.ace_scrollbar-h {overflow-x: scroll;overflow-y: hidden;left: 0;}.ace_print-margin {position: absolute;height: 100%;}.ace_text-input {position: absolute;z-index: 0;width: 0.5em;height: 1em;opacity: 0;background: transparent;-moz-appearance: none;appearance: none;border: none;resize: none;outline: none;overflow: hidden;font: inherit;padding: 0 1px;margin: 0 -1px;text-indent: -1em;-ms-user-select: text;-moz-user-select: text;-webkit-user-select: text;user-select: text;white-space: pre!important;}.ace_text-input.ace_composition {background: inherit;color: inherit;z-index: 1000;opacity: 1;text-indent: 0;}.ace_layer {z-index: 1;position: absolute;overflow: hidden;word-wrap: normal;white-space: pre;height: 100%;width: 100%;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;pointer-events: none;}.ace_gutter-layer {position: relative;width: auto;text-align: right;pointer-events: auto;}.ace_text-layer {font: inherit !important;}.ace_cjk {display: inline-block;text-align: center;}.ace_cursor-layer {z-index: 4;}.ace_cursor {z-index: 4;position: absolute;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;border-left: 2px solid;transform: translatez(0);}.ace_multiselect .ace_cursor {border-left-width: 1px;}.ace_slim-cursors .ace_cursor {border-left-width: 1px;}.ace_overwrite-cursors .ace_cursor {border-left-width: 0;border-bottom: 1px solid;}.ace_hidden-cursors .ace_cursor {opacity: 0.2;}.ace_smooth-blinking .ace_cursor {-webkit-transition: opacity 0.18s;transition: opacity 0.18s;}.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {position: absolute;z-index: 3;}.ace_marker-layer .ace_selection {position: absolute;z-index: 5;}.ace_marker-layer .ace_bracket {position: absolute;z-index: 6;}.ace_marker-layer .ace_active-line {position: absolute;z-index: 2;}.ace_marker-layer .ace_selected-word {position: absolute;z-index: 4;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;}.ace_line .ace_fold {-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;display: inline-block;height: 11px;margin-top: -2px;vertical-align: middle;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");background-repeat: no-repeat, repeat-x;background-position: center center, top left;color: transparent;border: 1px solid black;border-radius: 2px;cursor: pointer;pointer-events: auto;}.ace_dark .ace_fold {}.ace_fold:hover{background-image:url("data:image/png;ba...
    at /var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/x-pack/plugins/uptime/public/components/overview/query_bar/use_query_bar.test.tsx:119:39

Kibana Pipeline / jest / Jest Tests.x-pack/plugins/canvas/storybook.Storyshots components/WorkpadHeader/ElementMenu default

Link to Jenkins

Standard Out

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


Stack Trace

TypeError: Cannot convert undefined or null to object
    at Function.values (<anonymous>)
    at ElementMenu (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/x-pack/plugins/canvas/public/components/workpad_header/element_menu/element_menu.component.tsx:143:39)
    at renderWithHooks (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/react-test-renderer/cjs/react-test-renderer.development.js:6156:18)
    at mountIndeterminateComponent (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/react-test-renderer/cjs/react-test-renderer.development.js:8690:13)
    at beginWork$1 (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/react-test-renderer/cjs/react-test-renderer.development.js:10058:16)
    at performUnitOfWork (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/react-test-renderer/cjs/react-test-renderer.development.js:14708:12)
    at workLoopSync (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/react-test-renderer/cjs/react-test-renderer.development.js:14681:22)
    at performSyncWorkOnRoot (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/react-test-renderer/cjs/react-test-renderer.development.js:14380:11)
    at /var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/react-test-renderer/cjs/react-test-renderer.development.js:2063:24
    at unstable_runWithPriority (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/scheduler/cjs/scheduler.development.js:697:12)
    at runWithPriority (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/react-test-renderer/cjs/react-test-renderer.development.js:2013:10)
    at flushSyncCallbackQueueImpl (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/react-test-renderer/cjs/react-test-renderer.development.js:2058:7)
    at flushSyncCallbackQueue (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/react-test-renderer/cjs/react-test-renderer.development.js:2046:3)
    at scheduleUpdateOnFiber (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/react-test-renderer/cjs/react-test-renderer.development.js:13819:9)
    at updateContainer (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/react-test-renderer/cjs/react-test-renderer.development.js:17037:3)
    at create (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/react-test-renderer/cjs/react-test-renderer.development.js:17777:5)
    at test (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/x-pack/plugins/canvas/storybook/storyshots.test.tsx:114:22)
    at /var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/@storybook/addon-storyshots/dist/api/snapshotsTestsTemplate.js:36:24
    at new Promise (<anonymous>)
    at Object.<anonymous> (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/@storybook/addon-storyshots/dist/api/snapshotsTestsTemplate.js:35:20)
    at Promise.then.completed (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/jest-circus/build/utils.js:276:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/jest-circus/build/utils.js:216:10)
    at _callCircusTest (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/jest-circus/build/run.js:212:40)
    at _runTest (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/jest-circus/build/run.js:149:3)
    at _runTestsForDescribeBlock (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/jest-circus/build/run.js:63:9)
    at _runTestsForDescribeBlock (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/jest-circus/build/run.js:57:9)
    at _runTestsForDescribeBlock (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/jest-circus/build/run.js:57:9)
    at run (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/jest-circus/build/run.js:25:3)
    at runAndTransformResultsToJestFormat (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:176:21)
    at jestAdapter (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:109:19)
    at runTestInternal (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/jest-runner/build/runTest.js:380:16)
    at runTest (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/jest-runner/build/runTest.js:472:34)
    at Object.worker (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/jest-runner/build/testWorker.js:133:12)

Kibana Pipeline / general / Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/canvas/custom_elements·ts.Canvas app custom elements adds the custom element to the workpad when prompted

Link to Jenkins

Standard Out

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

[00:00:00]     │
[00:02:11]       └-: Canvas app
[00:02:11]         └-> "before all" hook in "Canvas app"
[00:02:11]         └-> "before all" hook in "Canvas app"
[00:02:11]           │ debg set roles = test_logstash_reader,global_canvas_all
[00:02:11]           │ debg creating user test_user
[00:02:11]           │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] updated user [test_user]
[00:02:11]           │ debg created user test_user
[00:02:11]           │ debg TestSubjects.exists(kibanaChrome)
[00:02:11]           │ debg Find.existsByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=2500
[00:02:12]           │ debg TestSubjects.find(kibanaChrome)
[00:02:12]           │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=100000
[00:02:12]           │ debg browser[INFO] http://localhost:6141/spaces/space_selector 281 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:12]           │
[00:02:12]           │ debg browser[INFO] http://localhost:6141/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:02:13]           │ info [x-pack/test/functional/es_archives/logstash_functional] Loading "mappings.json"
[00:02:13]           │ info [x-pack/test/functional/es_archives/logstash_functional] Loading "data.json.gz"
[00:02:13]           │ info [x-pack/test/functional/es_archives/logstash_functional] Skipped restore for existing index "logstash-2015.09.22"
[00:02:13]           │ info [x-pack/test/functional/es_archives/logstash_functional] Skipped restore for existing index "logstash-2015.09.20"
[00:02:13]           │ info [x-pack/test/functional/es_archives/logstash_functional] Skipped restore for existing index "logstash-2015.09.21"
[00:02:40]         └-: custom elements
[00:02:40]           └-> "before all" hook for "creates a custom element from an element when prompted"
[00:02:40]           └-> "before all" hook for "creates a custom element from an element when prompted"
[00:02:40]             │ debg resolved import for x-pack/test/functional/fixtures/kbn_archiver/canvas/default to /dev/shm/workspace/parallel/4/kibana/x-pack/test/functional/fixtures/kbn_archiver/canvas/default.json
[00:02:40]             │ info importing 1 saved objects { space: undefined }
[00:02:41]             │ succ import success
[00:02:41]             │ debg navigating to canvas url: http://localhost:6141/app/canvas#/
[00:02:41]             │ debg navigate to: http://localhost:6141/app/canvas#/
[00:02:41]             │ debg browser[INFO] http://localhost:6141/app/canvas?_t=1632863672272#/ 281 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:41]             │
[00:02:41]             │ debg browser[INFO] http://localhost:6141/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:02:41]             │ debg ... sleep(700) start
[00:02:42]             │ debg ... sleep(700) end
[00:02:42]             │ debg returned from get, calling refresh
[00:02:43]             │ debg browser[INFO] http://localhost:6141/app/canvas?_t=1632863672272#/ 281 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:43]             │
[00:02:43]             │ debg browser[INFO] http://localhost:6141/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:02:43]             │ debg currentUrl = http://localhost:6141/app/canvas#/
[00:02:43]             │          appUrl = http://localhost:6141/app/canvas#/
[00:02:43]             │ debg TestSubjects.find(kibanaChrome)
[00:02:43]             │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:02:44]             │ debg ... sleep(501) start
[00:02:44]             │ debg ... sleep(501) end
[00:02:44]             │ debg in navigateTo url = http://localhost:6141/app/canvas#/
[00:02:44]             │ debg navigating to canvas url: http://localhost:6141/app/canvas#/workpad/workpad-1705f884-6224-47de-ba49-ca224fe6ec31/page/1
[00:02:44]             │ debg navigate to: http://localhost:6141/app/canvas#/workpad/workpad-1705f884-6224-47de-ba49-ca224fe6ec31/page/1
[00:02:45]             │ debg browser[INFO] http://localhost:6141/app/canvas?_t=1632863675458#/workpad/workpad-1705f884-6224-47de-ba49-ca224fe6ec31/page/1 281 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:45]             │
[00:02:45]             │ debg browser[INFO] http://localhost:6141/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:02:45]             │ debg ... sleep(700) start
[00:02:46]             │ debg ... sleep(700) end
[00:02:46]             │ debg returned from get, calling refresh
[00:02:46]             │ERROR browser[SEVERE] http://localhost:6141/46571/bundles/core/core.entry.js 7:30933 TypeError: Failed to fetch
[00:02:46]             │          at fetch_Fetch.fetchResponse (http://localhost:6141/46571/bundles/core/core.entry.js:1:31896)
[00:02:46]             │          at async http://localhost:6141/46571/bundles/core/core.entry.js:1:30486
[00:02:46]             │          at async http://localhost:6141/46571/bundles/core/core.entry.js:1:30443
[00:02:46]             │ debg browser[INFO] http://localhost:6141/app/canvas?_t=1632863675458#/workpad/workpad-1705f884-6224-47de-ba49-ca224fe6ec31/page/1 281 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:46]             │
[00:02:46]             │ debg browser[INFO] http://localhost:6141/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:02:46]             │ debg currentUrl = http://localhost:6141/app/canvas#/workpad/workpad-1705f884-6224-47de-ba49-ca224fe6ec31/page/1
[00:02:46]             │          appUrl = http://localhost:6141/app/canvas#/workpad/workpad-1705f884-6224-47de-ba49-ca224fe6ec31/page/1
[00:02:46]             │ debg TestSubjects.find(kibanaChrome)
[00:02:46]             │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:02:47]             │ debg ... sleep(501) start
[00:02:48]             │ debg ... sleep(501) end
[00:02:48]             │ debg in navigateTo url = http://localhost:6141/app/canvas#/workpad/workpad-1705f884-6224-47de-ba49-ca224fe6ec31/page/1
[00:02:48]           └-> creates a custom element from an element when prompted
[00:02:48]             └-> "before each" hook: global before each for "creates a custom element from an element when prompted"
[00:02:48]             │ debg TestSubjects.click(canvasWorkpadPage > canvasWorkpadPageElementContent)
[00:02:48]             │ debg Find.clickByCssSelector('[data-test-subj="canvasWorkpadPage"] [data-test-subj="canvasWorkpadPageElementContent"]') with timeout=20000
[00:02:48]             │ debg Find.findByCssSelector('[data-test-subj="canvasWorkpadPage"] [data-test-subj="canvasWorkpadPageElementContent"]') with timeout=20000
[00:02:48]             │ debg TestSubjects.click(canvasWorkpadEditMenuButton)
[00:02:48]             │ debg Find.clickByCssSelector('[data-test-subj="canvasWorkpadEditMenuButton"]') with timeout=20000
[00:02:48]             │ debg Find.findByCssSelector('[data-test-subj="canvasWorkpadEditMenuButton"]') with timeout=20000
[00:02:48]             │ debg TestSubjects.click(canvasWorkpadEditMenu__saveElementButton)
[00:02:48]             │ debg Find.clickByCssSelector('[data-test-subj="canvasWorkpadEditMenu__saveElementButton"]') with timeout=20000
[00:02:48]             │ debg Find.findByCssSelector('[data-test-subj="canvasWorkpadEditMenu__saveElementButton"]') with timeout=20000
[00:02:49]             │ debg TestSubjects.setValue(canvasCustomElementForm-name, My New Element)
[00:02:49]             │ debg TestSubjects.click(canvasCustomElementForm-name)
[00:02:49]             │ debg Find.clickByCssSelector('[data-test-subj="canvasCustomElementForm-name"]') with timeout=10000
[00:02:49]             │ debg Find.findByCssSelector('[data-test-subj="canvasCustomElementForm-name"]') with timeout=10000
[00:02:49]             │ debg TestSubjects.setValue(canvasCustomElementForm-description, An excellent new element)
[00:02:49]             │ debg TestSubjects.click(canvasCustomElementForm-description)
[00:02:49]             │ debg Find.clickByCssSelector('[data-test-subj="canvasCustomElementForm-description"]') with timeout=10000
[00:02:49]             │ debg Find.findByCssSelector('[data-test-subj="canvasCustomElementForm-description"]') with timeout=10000
[00:02:49]             │ debg TestSubjects.click(canvasCustomElementForm-submit)
[00:02:49]             │ debg Find.clickByCssSelector('[data-test-subj="canvasCustomElementForm-submit"]') with timeout=10000
[00:02:49]             │ debg Find.findByCssSelector('[data-test-subj="canvasCustomElementForm-submit"]') with timeout=10000
[00:02:49]             │ debg TestSubjects.exists(canvasCustomElementCreate-success)
[00:02:49]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="canvasCustomElementCreate-success"]') with timeout=30000
[00:02:50]             └- ✓ pass  (2.2s) "Canvas app custom elements creates a custom element from an element when prompted"
[00:02:50]           └-> adds the custom element to the workpad when prompted
[00:02:50]             └-> "before each" hook: global before each for "adds the custom element to the workpad when prompted"
[00:02:50]             │ debg TestSubjects.click(add-element-button)
[00:02:50]             │ debg Find.clickByCssSelector('[data-test-subj="add-element-button"]') with timeout=10000
[00:02:50]             │ debg Find.findByCssSelector('[data-test-subj="add-element-button"]') with timeout=10000
[00:03:00]             │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="add-element-button"])
[00:03:00]             │      Wait timed out after 10053ms
[00:03:01]             │ debg Find.findByCssSelector('[data-test-subj="add-element-button"]') with timeout=10000
[00:03:11]             │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="add-element-button"])
[00:03:11]             │      Wait timed out after 10018ms
[00:03:11]             │ debg Find.findByCssSelector('[data-test-subj="add-element-button"]') with timeout=10000
[00:03:21]             │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="add-element-button"])
[00:03:21]             │      Wait timed out after 10057ms
[00:03:22]             │ debg Find.findByCssSelector('[data-test-subj="add-element-button"]') with timeout=10000
[00:03:32]             │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="add-element-button"])
[00:03:32]             │      Wait timed out after 10056ms
[00:03:32]             │ debg Find.findByCssSelector('[data-test-subj="add-element-button"]') with timeout=10000
[00:03:42]             │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="add-element-button"])
[00:03:42]             │      Wait timed out after 10054ms
[00:03:43]             │ debg Find.findByCssSelector('[data-test-subj="add-element-button"]') with timeout=10000
[00:03:53]             │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="add-element-button"])
[00:03:53]             │      Wait timed out after 10006ms
[00:03:53]             │ debg Find.findByCssSelector('[data-test-subj="add-element-button"]') with timeout=10000
[00:04:03]             │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="add-element-button"])
[00:04:03]             │      Wait timed out after 10037ms
[00:04:04]             │ debg Find.findByCssSelector('[data-test-subj="add-element-button"]') with timeout=10000
[00:04:14]             │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="add-element-button"])
[00:04:14]             │      Wait timed out after 10028ms
[00:04:14]             │ debg Find.findByCssSelector('[data-test-subj="add-element-button"]') with timeout=10000
[00:04:25]             │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="add-element-button"])
[00:04:25]             │      Wait timed out after 10037ms
[00:04:25]             │ debg Find.findByCssSelector('[data-test-subj="add-element-button"]') with timeout=10000
[00:04:35]             │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="add-element-button"])
[00:04:35]             │      Wait timed out after 10029ms
[00:04:36]             │ debg Find.findByCssSelector('[data-test-subj="add-element-button"]') with timeout=10000
[00:04:44]             │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_task_manager_8.0.0_001/L-xYrZwZRjankcscaZ6aAw] update_mapping [_doc]
[00:04:46]             │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="add-element-button"])
[00:04:46]             │      Wait timed out after 10015ms
[00:04:46]             │ debg Find.findByCssSelector('[data-test-subj="add-element-button"]') with timeout=10000
[00:04:56]             │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="add-element-button"])
[00:04:56]             │      Wait timed out after 10026ms
[00:04:57]             │ info Taking screenshot "/dev/shm/workspace/parallel/4/kibana/x-pack/test/functional/screenshots/failure/Canvas app custom elements adds the custom element to the workpad when prompted.png"
[00:04:57]             │ info Current URL is: http://localhost:6141/app/canvas#/workpad/workpad-1705f884-6224-47de-ba49-ca224fe6ec31/page/1
[00:04:57]             │ info Saving page source to: /dev/shm/workspace/parallel/4/kibana/x-pack/test/functional/failure_debug/html/Canvas app custom elements adds the custom element to the workpad when prompted.html
[00:04:57]             └- ✖ fail: Canvas app custom elements adds the custom element to the workpad when prompted
[00:04:57]             │      Error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="add-element-button"])
[00:04:57]             │ Wait timed out after 10026ms
[00:04:57]             │     at /dev/shm/workspace/parallel/4/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
[00:04:57]             │     at runMicrotasks (<anonymous>)
[00:04:57]             │     at processTicksAndRejections (internal/process/task_queues.js:95:5)
[00:04:57]             │       at onFailure (/dev/shm/workspace/parallel/4/kibana/test/common/services/retry/retry_for_success.ts:17:9)
[00:04:57]             │       at retryForSuccess (/dev/shm/workspace/parallel/4/kibana/test/common/services/retry/retry_for_success.ts:57:13)
[00:04:57]             │       at RetryService.try (/dev/shm/workspace/parallel/4/kibana/test/common/services/retry/retry.ts:31:12)
[00:04:57]             │       at Proxy.clickByCssSelector (/dev/shm/workspace/parallel/4/kibana/test/functional/services/common/find.ts:360:5)
[00:04:57]             │       at TestSubjects.click (/dev/shm/workspace/parallel/4/kibana/test/functional/services/common/test_subjects.ts:105:5)
[00:04:57]             │       at Object.openSavedElementsModal (test/functional/page_objects/canvas_page.ts:74:7)
[00:04:57]             │       at Context.<anonymous> (test/functional/apps/canvas/custom_elements.ts:65:7)
[00:04:57]             │       at Object.apply (/dev/shm/workspace/parallel/4/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)
[00:04:57]             │ 
[00:04:57]             │ 

Stack Trace

Error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="add-element-button"])
Wait timed out after 10026ms
    at /dev/shm/workspace/parallel/4/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at onFailure (/dev/shm/workspace/parallel/4/kibana/test/common/services/retry/retry_for_success.ts:17:9)
    at retryForSuccess (/dev/shm/workspace/parallel/4/kibana/test/common/services/retry/retry_for_success.ts:57:13)
    at RetryService.try (/dev/shm/workspace/parallel/4/kibana/test/common/services/retry/retry.ts:31:12)
    at Proxy.clickByCssSelector (/dev/shm/workspace/parallel/4/kibana/test/functional/services/common/find.ts:360:5)
    at TestSubjects.click (/dev/shm/workspace/parallel/4/kibana/test/functional/services/common/test_subjects.ts:105:5)
    at Object.openSavedElementsModal (test/functional/page_objects/canvas_page.ts:74:7)
    at Context.<anonymous> (test/functional/apps/canvas/custom_elements.ts:65:7)
    at Object.apply (/dev/shm/workspace/parallel/4/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)

History

  • 💔 Build #155935 failed 0d3f88343168421352c62cfe9d1ea74fb859d31b
  • 💔 Build #155865 failed 1734041be35aa4d2fc0aa09ae72b643a3188ac25
  • 💔 Build #121233 failed 1734041be35aa4d2fc0aa09ae72b643a3188ac25
  • 💔 Build #117140 failed 8e08918de68b35b5d0dd8b56fdc4ec5e38b61898

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature:Canvas Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas t//

Projects

None yet

Development

Successfully merging this pull request may close these issues.