elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.74k stars 8.14k forks source link

[test-failed]: Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/dashboard/feature_controls/dashboard_security·ts - dashboard feature controls dashboard security global dashboard & embeddable all privileges allows a map to be edited #42735

Closed liza-mae closed 4 years ago

liza-mae commented 5 years ago

Version: 7.x Class: Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/dashboard/feature_controls/dashboard_security·ts Stack Trace:

    Error: expected testSubject(embeddablePanelAction-editPanel) to exist
at TestSubjects.existOrFail (/private/var/lib/jenkins/workspace/elastic+estf-kibana+7.x-snapshot+multijob-x-pack-darwin/kibana/test/functional/services/test_subjects.ts:56:15)
at process._tickCallback (internal/process/next_tick.js:68:7)

Platform: darwin Build Num: 36

dashboard feature controls dashboard security global dashboard _ embeddable all privileges allows a map to be edited

elasticmachine commented 5 years ago

Pinging @elastic/kibana-test-triage

liza-mae commented 5 years ago

Standard output

[16:27:07] └-> allows a map to be edited [16:27:07] └-> "before each" hook: global before each [16:27:07] │ debg navigating to dashboard url: http://localhost:5620/app/kibana#/dashboards [16:27:07] │ debg Navigate to: http://localhost:5620/app/kibana#/dashboards [16:27:07] │ debg ... sleep(700) start [16:27:07] │ debg browser[INFO] http://localhost:5620/app/kibana?_t=1564741404878#/dashboards 371 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'nonce-wSb9J9ScHzf7GPqf'". Either the 'unsafe-inline' keyword, a hash ('sha256-SHHSeLc0bp6xt4BoVVyUy+3IbVqp3ujLaR+s+kSP5UI='), or a nonce ('nonce-...') is required to enable inline execution. [16:27:07] │ [16:27:07] │ debg browser[INFO] http://localhost:5620/bundles/app/kibana/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!" [16:27:08] │ debg ... sleep(700) end [16:27:08] │ debg returned from get, calling refresh [16:27:08] │ debg browser[INFO] http://localhost:5620/app/kibana?_t=1564741404878#/dashboards 371 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'nonce-rkzO4ekEr0C/+V8C'". Either the 'unsafe-inline' keyword, a hash ('sha256-SHHSeLc0bp6xt4BoVVyUy+3IbVqp3ujLaR+s+kSP5UI='), or a nonce ('nonce-...') is required to enable inline execution. [16:27:08] │ [16:27:08] │ debg browser[INFO] http://localhost:5620/bundles/app/kibana/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!" [16:27:08] │ debg currentUrl = http://localhost:5620/app/kibana#/dashboards [16:27:08] │ appUrl = http://localhost:5620/app/kibana#/dashboards [16:27:08] │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=240000 [16:27:09] │ debg TestSubjects.find(kibanaChrome) [16:27:09] │ debg Find.findByCssSelector('[data-test-subj~="kibanaChrome"]') with timeout=10000 [16:27:09] │ debg browser[INFO] http://localhost:5620/built_assets/dlls/vendors.bundle.dll.js 610:139083 "INFO: 2019-08-02T10:23:26Z [16:27:09] │ Adding connection to http://localhost:5620/elasticsearch [16:27:09] │ [16:27:09] │ " [16:27:09] │ debg ... sleep(501) start [16:27:10] │ debg ... sleep(501) end [16:27:10] │ debg in navigateTo url = http://localhost:5620/app/kibana#/dashboards?_g=() [16:27:10] │ debg TestSubjects.exists(statusPageContainer) [16:27:10] │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="statusPageContainer"]') with timeout=2500 [16:27:13] │ debg Load Saved Dashboard dashboard with map [16:27:13] │ debg gotoDashboardLandingPage [16:27:13] │ debg onDashboardLandingPage [16:27:13] │ debg TestSubjects.exists(dashboardLandingPage) [16:27:13] │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="dashboardLandingPage"]') with timeout=5000 [16:27:13] │ debg searchForDashboardWithName: dashboard with map [16:27:13] │ debg gotoDashboardLandingPage [16:27:13] │ debg onDashboardLandingPage [16:27:13] │ debg TestSubjects.exists(dashboardLandingPage) [16:27:13] │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="dashboardLandingPage"]') with timeout=5000 [16:27:13] │ debg Find.allByCssSelector('.euiFieldSearch') with timeout=10000 [16:27:13] │ debg Find.waitForDeletedByCssSelector('.euiBasicTable-loading') with timeout=5000 [16:27:14] │ debg isGlobalLoadingIndicatorVisible [16:27:14] │ debg TestSubjects.exists(globalLoadingIndicator) [16:27:14] │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="globalLoadingIndicator"]') with timeout=2500 [16:27:17] │ debg TestSubjects.exists(globalLoadingIndicator-hidden) [16:27:17] │ debg Find.existsByCssSelector('[data-test-subj~="globalLoadingIndicator-hidden"]') with timeout=100000 [16:27:17] │ debg TestSubjects.click(dashboardListingTitleLink-dashboard-with-map) [16:27:17] │ debg Find.clickByCssSelector('[data-test-subj~="dashboardListingTitleLink-dashboard-with-map"]') with timeout=10000 [16:27:17] │ debg Find.findByCssSelector('[data-test-subj~="dashboardListingTitleLink-dashboard-with-map"]') with timeout=10000 [16:27:17] │ debg isGlobalLoadingIndicatorVisible [16:27:17] │ debg TestSubjects.exists(globalLoadingIndicator) [16:27:17] │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="globalLoadingIndicator"]') with timeout=2500 [16:27:19] │ debg TestSubjects.exists(globalLoadingIndicator-hidden) [16:27:19] │ debg Find.existsByCssSelector('[data-test-subj~="globalLoadingIndicator-hidden"]') with timeout=100000 [16:27:19] │ debg TestSubjects.missingOrFail(dashboardLandingPage) [16:27:19] │ debg Find.waitForDeletedByCssSelector('[data-test-subj~="dashboardLandingPage"]') with timeout=10000 [16:27:20] │ debg Switching to edit mode [16:27:20] │ debg TestSubjects.click(dashboardEditMode) [16:27:20] │ debg Find.clickByCssSelector('[data-test-subj~="dashboardEditMode"]') with timeout=10000 [16:27:20] │ debg Find.findByCssSelector('[data-test-subj~="dashboardEditMode"]') with timeout=10000 [16:27:20] │ debg Waiting up to 20000ms for in edit mode... [16:27:20] │ debg TestSubjects.findAll(embeddablePanel) [16:27:20] │ debg Find.allByCssSelector('[data-test-subj~="embeddablePanel"]') with timeout=10000 [16:27:20] │ debg TestSubjects.findAll(embeddablePanelToggleMenuIcon) [16:27:20] │ debg Find.allByCssSelector('[data-test-subj~="embeddablePanelToggleMenuIcon"]') with timeout=10000 [16:27:20] │ debg openContextMenu(undefined [16:27:20] │ debg toggleContextMenu [16:27:20] │ debg TestSubjects.moveMouseTo(dashboardPanelTitle) [16:27:20] │ debg TestSubjects.find(dashboardPanelTitle) [16:27:20] │ debg Find.findByCssSelector('[data-test-subj~="dashboardPanelTitle"]') with timeout=10000 [16:27:20] │ debg TestSubjects.find(embeddablePanelToggleMenuIcon) [16:27:20] │ debg Find.findByCssSelector('[data-test-subj~="embeddablePanelToggleMenuIcon"]') with timeout=10000 [16:27:20] │ debg TestSubjects.exists(embeddablePanelContextMenuOpen) [16:27:20] │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="embeddablePanelContextMenuOpen"]') with timeout=120000 [16:27:20] │ debg expectExistsEditPanelAction [16:27:20] │ debg TestSubjects.exists(embeddablePanelAction-editPanel) [16:27:20] │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="embeddablePanelAction-editPanel"]') with timeout=120000 [16:27:20] │ info Taking screenshot "/private/var/lib/jenkins/workspace/elastic+estf-kibana+7.x-snapshot+multijob-x-pack-darwin/kibana/x-pack/test/functional/screenshots/failure/dashboard feature controls dashboard security global dashboard _ embeddable all privileges allows a map to be edited.png" [16:27:21] │ info Current URL is: http://localhost:5620/app/kibana#/dashboard/1c1a87f0-70f5-11e9-8625-9580c4904684?_g=()&_a=(description:%27%27,filters:!(),fullScreenMode:!f,options:(hidePanelTitles:!f,useMargins:!t),panels:!((embeddableConfig:(isLayerTOCOpen:!t,mapCenter:(lat:0,lon:0,zoom:0.8),openTOCDetails:!()),gridData:(h:15,i:%271%27,w:24,x:0,y:0),id:%270b849ed0-70f5-11e9-8625-9580c4904684%27,panelIndex:%271%27,type:map,version:%277.4.0-SNAPSHOT%27)),query:(language:kuery,query:%27%27),timeRestore:!f,title:%27dashboard%20with%20map%27,viewMode:edit) [16:27:21] │ info Saving page source to: /private/var/lib/jenkins/workspace/elastic+estf-kibana+7.x-snapshot+multijob-x-pack-darwin/kibana/x-pack/test/functional/failuredebug/html/dashboard feature controls dashboard security global dashboard embeddable all privileges allows a map to be edited.html [16:27:21] └- ✖ fail: "dashboard feature controls dashboard security global dashboard & embeddable all privileges allows a map to be edited" [16:27:21] │ Error: expected testSubject(embeddablePanelAction-editPanel) to exist [16:27:21] │ at TestSubjects.existOrFail (/private/var/lib/jenkins/workspace/elastic+estf-kibana+7.x-snapshot+multijob-x-pack-darwin/kibana/test/functional/services/test_subjects.ts:56:15) [16:27:21] │ at process._tickCallback (internal/process/next_tick.js:68:7) [16:27:21] │ [16:27:21] │

elasticmachine commented 5 years ago

Pinging @elastic/kibana-gis