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

[Discover] Unskip and improve document explorer field expand test #107311

Merged

Conversation

kertal
Copy link
Member

@kertal kertal commented Jul 30, 2021

Summary

Improve and unskip Document explorer should show popover with expanded cell content by click on expand button functional test

Buildkite 200 https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/33

Fixes #94889

Checklist

@kertal kertal added Feature:Discover Discover Application Team:Visualizations Visualization editors, elastic-charts and infrastructure labels Jul 30, 2021
@kertal kertal self-assigned this Jul 30, 2021
@kertal kertal added this to PRs in progress in Discover via automation Jul 30, 2021
@kertal
Copy link
Member Author

kertal commented Aug 16, 2021

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

kibanamachine commented Aug 18, 2021

💔 Build Failed

Failed CI Steps


Test Failures

Kibana Pipeline / general / Chrome UI Functional Tests.test/functional/apps/discover/_data_grid_doc_table·ts.discover app discover data grid doc table should show popover with expanded cell content by click on expand button

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:09:25]         └-: discover app
[00:09:25]           └-> "before all" hook in "discover app"
[00:09:25]           └-> "before all" hook in "discover app"
[00:32:20]           └-: discover data grid doc table
[00:32:20]             └-> "before all" hook for "should show rows by default"
[00:32:20]             └-> "before all" hook for "should show rows by default"
[00:32:20]               │ debg load kibana index with default index pattern
[00:32:20]               │ debg Cleaning all saved objects { space: undefined }
[00:32:20]               │ info deleting batch of 2 objects
[00:32:21]               │ succ deleted 2 objects
[00:32:21]               │ debg resolved import for test/functional/fixtures/kbn_archiver/discover.json to /dev/shm/workspace/parallel/6/kibana/test/functional/fixtures/kbn_archiver/discover.json
[00:32:21]               │ info importing 2 saved objects { space: undefined }
[00:32:22]               │ succ import success
[00:32:22]               │ info [test/functional/fixtures/es_archiver/logstash_functional] Loading "mappings.json"
[00:32:22]               │ info [test/functional/fixtures/es_archiver/logstash_functional] Loading "data.json.gz"
[00:32:22]               │ info [test/functional/fixtures/es_archiver/logstash_functional] Skipped restore for existing index "logstash-2015.09.22"
[00:32:22]               │ info [test/functional/fixtures/es_archiver/logstash_functional] Skipped restore for existing index "logstash-2015.09.20"
[00:32:22]               │ info [test/functional/fixtures/es_archiver/logstash_functional] Skipped restore for existing index "logstash-2015.09.21"
[00:32:23]               │ debg replacing kibana config doc: {"defaultIndex":"logstash-*","doc_table:legacy":false}
[00:32:23]               │ debg applying update to kibana config: {"timepicker:timeDefaults":"{ \"from\": \"2015-09-18T06:31:44.000Z\", \"to\": \"2015-09-23T18:31:44.000Z\"}"}
[00:32:24]               │ debg navigating to discover url: http://localhost:6161/app/discover#/
[00:32:24]               │ debg navigate to: http://localhost:6161/app/discover#/
[00:32:24]               │ debg browser[INFO] http://localhost:6161/app/discover?_t=1629278709622#/ 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:32:24]               │
[00:32:24]               │ debg browser[INFO] http://localhost:6161/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:32:24]               │ debg ... sleep(700) start
[00:32:25]               │ debg ... sleep(700) end
[00:32:25]               │ debg returned from get, calling refresh
[00:32:26]               │ debg browser[INFO] http://localhost:6161/app/discover?_t=1629278709622#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:'2015-09-18T06:31:44.000Z',to:'2015-09-23T18:31:44.000Z'))&_a=(columns:!(),filters:!(),index:'logstash-*',interval:auto,query:(language:kuery,query:''),sort:!(!('@timestamp',desc))) 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:32:26]               │
[00:32:26]               │ debg browser[INFO] http://localhost:6161/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:32:26]               │ debg currentUrl = http://localhost:6161/app/discover#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:%272015-09-18T06:31:44.000Z%27,to:%272015-09-23T18:31:44.000Z%27))&_a=(columns:!(),filters:!(),index:%27logstash-*%27,interval:auto,query:(language:kuery,query:%27%27),sort:!(!(%27@timestamp%27,desc)))
[00:32:26]               │          appUrl = http://localhost:6161/app/discover#/
[00:32:26]               │ debg TestSubjects.find(kibanaChrome)
[00:32:26]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:32:26]               │ debg ... sleep(501) start
[00:32:27]               │ debg ... sleep(501) end
[00:32:27]               │ debg in navigateTo url = http://localhost:6161/app/discover#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:%272015-09-18T06:31:44.000Z%27,to:%272015-09-23T18:31:44.000Z%27))&_a=(columns:!(),filters:!(),index:%27logstash-*%27,interval:auto,query:(language:kuery,query:%27%27),sort:!(!(%27@timestamp%27,desc)))
[00:32:27]             └-> should show rows by default
[00:32:27]               └-> "before each" hook: global before each for "should show rows by default"
[00:32:27]               │ debg TestSubjects.find(docTable)
[00:32:27]               │ debg Find.findByCssSelector('[data-test-subj="docTable"]') with timeout=10000
[00:32:30]               └- ✓ pass  (3.5s) "discover app discover data grid doc table should show rows by default"
[00:32:30]             └-> should refresh the table content when changing time window
[00:32:30]               └-> "before each" hook: global before each for "should refresh the table content when changing time window"
[00:32:30]               │ debg TestSubjects.find(docTable)
[00:32:30]               │ debg Find.findByCssSelector('[data-test-subj="docTable"]') with timeout=10000
[00:32:31]               │ debg Setting absolute range to Sep 20, 2015 @ 23:00:00.000 to Sep 20, 2015 @ 23:14:00.000
[00:32:31]               │ debg TestSubjects.exists(superDatePickerToggleQuickMenuButton)
[00:32:31]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerToggleQuickMenuButton"]') with timeout=20000
[00:32:31]               │ debg TestSubjects.exists(superDatePickerShowDatesButton)
[00:32:31]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerShowDatesButton"]') with timeout=2500
[00:32:33]               │ debg --- retry.tryForTime error: [data-test-subj="superDatePickerShowDatesButton"] is not displayed
[00:32:34]               │ debg TestSubjects.exists(superDatePickerstartDatePopoverButton)
[00:32:34]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerstartDatePopoverButton"]') with timeout=2500
[00:32:34]               │ debg TestSubjects.click(superDatePickerendDatePopoverButton)
[00:32:34]               │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerendDatePopoverButton"]') with timeout=10000
[00:32:34]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerendDatePopoverButton"]') with timeout=10000
[00:32:34]               │ debg Find.findByCssSelector('div.euiPopover__panel-isOpen') with timeout=10000
[00:32:34]               │ debg TestSubjects.click(superDatePickerAbsoluteTab)
[00:32:34]               │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:32:34]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:32:34]               │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:32:34]               │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:32:34]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:32:34]               │ debg TestSubjects.setValue(superDatePickerAbsoluteDateInput, Sep 20, 2015 @ 23:14:00.000)
[00:32:34]               │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:32:34]               │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:32:34]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:32:35]               │ debg TestSubjects.click(superDatePickerstartDatePopoverButton)
[00:32:35]               │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerstartDatePopoverButton"]') with timeout=10000
[00:32:35]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerstartDatePopoverButton"]') with timeout=10000
[00:32:35]               │ debg Find.waitForElementStale with timeout=10000
[00:32:35]               │ debg Find.findByCssSelector('div.euiPopover__panel-isOpen') with timeout=10000
[00:32:35]               │ debg TestSubjects.click(superDatePickerAbsoluteTab)
[00:32:35]               │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:32:35]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:32:35]               │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:32:35]               │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:32:35]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:32:35]               │ debg TestSubjects.setValue(superDatePickerAbsoluteDateInput, Sep 20, 2015 @ 23:00:00.000)
[00:32:35]               │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:32:35]               │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:32:35]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:32:36]               │ debg Waiting up to 20000ms for Timepicker popover to close...
[00:32:36]               │ debg TestSubjects.exists(superDatePickerAbsoluteDateInput)
[00:32:36]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=2500
[00:32:36]               │ debg --- retry.tryForTime error: [data-test-subj="superDatePickerAbsoluteDateInput"] is not displayed
[00:32:39]               │ debg --- retry.tryForTime failed again with the same message...
[00:32:39]               │ debg TestSubjects.exists(superDatePickerApplyTimeButton)
[00:32:39]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerApplyTimeButton"]') with timeout=2500
[00:32:42]               │ debg --- retry.tryForTime error: [data-test-subj="superDatePickerApplyTimeButton"] is not displayed
[00:32:42]               │ debg TestSubjects.click(querySubmitButton)
[00:32:42]               │ debg Find.clickByCssSelector('[data-test-subj="querySubmitButton"]') with timeout=10000
[00:32:42]               │ debg Find.findByCssSelector('[data-test-subj="querySubmitButton"]') with timeout=10000
[00:32:43]               │ debg Find.waitForElementStale with timeout=10000
[00:32:43]               │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:32:43]               │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:32:43]               │ debg TestSubjects.missingOrFail(loadingSpinner)
[00:32:43]               │ debg Find.waitForDeletedByCssSelector('[data-test-subj="loadingSpinner"]') with timeout=100000
[00:32:44]               │ debg isGlobalLoadingIndicatorVisible
[00:32:44]               │ debg TestSubjects.exists(globalLoadingIndicator)
[00:32:44]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:32:45]               │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:32:46]               │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:32:46]               │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:32:46]               │ debg TestSubjects.find(docTable)
[00:32:46]               │ debg Find.findByCssSelector('[data-test-subj="docTable"]') with timeout=10000
[00:32:46]               └- ✓ pass  (15.9s) "discover app discover data grid doc table should refresh the table content when changing time window"
[00:32:46]             └-> should show popover with expanded cell content by click on expand button
[00:32:46]               └-> "before each" hook: global before each for "should show popover with expanded cell content by click on expand button"
[00:32:46]               │ debg open popover with expanded cell content to get json from the editor
[00:32:46]               │ debg Setting absolute range to Sep 19, 2015 @ 06:31:44.000 to Sep 23, 2015 @ 18:31:44.000
[00:32:46]               │ debg TestSubjects.exists(superDatePickerToggleQuickMenuButton)
[00:32:46]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerToggleQuickMenuButton"]') with timeout=20000
[00:32:46]               │ debg TestSubjects.exists(superDatePickerShowDatesButton)
[00:32:46]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerShowDatesButton"]') with timeout=2500
[00:32:49]               │ debg --- retry.tryForTime error: [data-test-subj="superDatePickerShowDatesButton"] is not displayed
[00:32:49]               │ debg TestSubjects.exists(superDatePickerstartDatePopoverButton)
[00:32:49]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerstartDatePopoverButton"]') with timeout=2500
[00:32:49]               │ debg TestSubjects.click(superDatePickerendDatePopoverButton)
[00:32:49]               │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerendDatePopoverButton"]') with timeout=10000
[00:32:49]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerendDatePopoverButton"]') with timeout=10000
[00:32:49]               │ debg Find.findByCssSelector('div.euiPopover__panel-isOpen') with timeout=10000
[00:32:49]               │ debg TestSubjects.click(superDatePickerAbsoluteTab)
[00:32:49]               │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:32:49]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:32:49]               │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:32:49]               │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:32:49]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:32:49]               │ debg TestSubjects.setValue(superDatePickerAbsoluteDateInput, Sep 23, 2015 @ 18:31:44.000)
[00:32:49]               │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:32:49]               │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:32:49]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:32:50]               │ debg TestSubjects.click(superDatePickerstartDatePopoverButton)
[00:32:50]               │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerstartDatePopoverButton"]') with timeout=10000
[00:32:50]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerstartDatePopoverButton"]') with timeout=10000
[00:32:50]               │ debg Find.waitForElementStale with timeout=10000
[00:32:50]               │ debg Find.findByCssSelector('div.euiPopover__panel-isOpen') with timeout=10000
[00:32:50]               │ debg TestSubjects.click(superDatePickerAbsoluteTab)
[00:32:50]               │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:32:50]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:32:50]               │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:32:50]               │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:32:50]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:32:50]               │ debg TestSubjects.setValue(superDatePickerAbsoluteDateInput, Sep 19, 2015 @ 06:31:44.000)
[00:32:50]               │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:32:50]               │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:32:50]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:32:51]               │ debg Waiting up to 20000ms for Timepicker popover to close...
[00:32:51]               │ debg TestSubjects.exists(superDatePickerAbsoluteDateInput)
[00:32:51]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=2500
[00:32:51]               │ debg --- retry.tryForTime error: [data-test-subj="superDatePickerAbsoluteDateInput"] is not displayed
[00:32:54]               │ debg --- retry.tryForTime failed again with the same message...
[00:32:54]               │ debg TestSubjects.exists(superDatePickerApplyTimeButton)
[00:32:54]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerApplyTimeButton"]') with timeout=2500
[00:32:57]               │ debg --- retry.tryForTime error: [data-test-subj="superDatePickerApplyTimeButton"] is not displayed
[00:32:57]               │ debg TestSubjects.click(querySubmitButton)
[00:32:57]               │ debg Find.clickByCssSelector('[data-test-subj="querySubmitButton"]') with timeout=10000
[00:32:57]               │ debg Find.findByCssSelector('[data-test-subj="querySubmitButton"]') with timeout=10000
[00:32:57]               │ debg Find.waitForElementStale with timeout=10000
[00:32:58]               │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:32:58]               │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:32:58]               │ debg TestSubjects.missingOrFail(loadingSpinner)
[00:32:58]               │ debg Find.waitForDeletedByCssSelector('[data-test-subj="loadingSpinner"]') with timeout=100000
[00:32:58]               │ debg Find.findByCssSelector('.euiDataGrid') with timeout=10000
[00:32:58]               │ debg Find.findByCssSelector('[data-test-subj="dataGridWrapper"] [data-test-subj="dataGridRowCell"]:nth-of-type(5)') with timeout=10000
[00:32:59]               │ debg open expanded document flyout to get json
[00:32:59]               │ debg TestSubjects.find(docTable)
[00:32:59]               │ debg Find.findByCssSelector('[data-test-subj="docTable"]') with timeout=10000
[00:33:03]               │ debg Find.clickByCssSelectorWhenNotDisabled('#kbn_doc_viewer_tab_1') with timeout=10000
[00:33:03]               │ debg Find.findByCssSelector('#kbn_doc_viewer_tab_1') with timeout=10000
[00:33:04]               │ debg Waiting up to 20000ms for codeEditorValue to be valid...
[00:34:48]               │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_task_manager_8.0.0_001/IKdTv6VWQGyzdYgNY4ABCg] update_mapping [_doc]
[00:38:46]               └- ✖ fail: discover app discover data grid doc table should show popover with expanded cell content by click on expand button
[00:38:46]               │      Error: Timeout of 360000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/dev/shm/workspace/parallel/6/kibana/test/functional/apps/discover/_data_grid_doc_table.ts)
[00:38:46]               │       at listOnTimeout (internal/timers.js:557:17)
[00:38:46]               │       at processTimers (internal/timers.js:500:7)
[00:38:46]               │ 
[00:38:46]               │ 

Stack Trace

Error: Timeout of 360000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/dev/shm/workspace/parallel/6/kibana/test/functional/apps/discover/_data_grid_doc_table.ts)
    at listOnTimeout (internal/timers.js:557:17)
    at processTimers (internal/timers.js:500:7)

Kibana Pipeline / general / Chrome UI Functional Tests.test/functional/apps/discover/_data_grid_doc_table·ts.discover app discover data grid doc table should show popover with expanded cell content by click on expand button

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:09:36]         └-: discover app
[00:09:36]           └-> "before all" hook in "discover app"
[00:09:36]           └-> "before all" hook in "discover app"
[00:32:48]           └-: discover data grid doc table
[00:32:48]             └-> "before all" hook for "should show rows by default"
[00:32:48]             └-> "before all" hook for "should show rows by default"
[00:32:48]               │ debg load kibana index with default index pattern
[00:32:48]               │ debg Cleaning all saved objects { space: undefined }
[00:32:48]               │ info deleting batch of 2 objects
[00:32:48]               │ succ deleted 2 objects
[00:32:48]               │ debg resolved import for test/functional/fixtures/kbn_archiver/discover.json to /dev/shm/workspace/parallel/6/kibana/test/functional/fixtures/kbn_archiver/discover.json
[00:32:48]               │ info importing 2 saved objects { space: undefined }
[00:32:49]               │ succ import success
[00:32:49]               │ info [test/functional/fixtures/es_archiver/logstash_functional] Loading "mappings.json"
[00:32:49]               │ info [test/functional/fixtures/es_archiver/logstash_functional] Loading "data.json.gz"
[00:32:49]               │ info [test/functional/fixtures/es_archiver/logstash_functional] Skipped restore for existing index "logstash-2015.09.22"
[00:32:49]               │ info [test/functional/fixtures/es_archiver/logstash_functional] Skipped restore for existing index "logstash-2015.09.20"
[00:32:49]               │ info [test/functional/fixtures/es_archiver/logstash_functional] Skipped restore for existing index "logstash-2015.09.21"
[00:32:50]               │ debg replacing kibana config doc: {"defaultIndex":"logstash-*","doc_table:legacy":false}
[00:32:50]               │ debg applying update to kibana config: {"timepicker:timeDefaults":"{ \"from\": \"2015-09-18T06:31:44.000Z\", \"to\": \"2015-09-23T18:31:44.000Z\"}"}
[00:32:51]               │ debg navigating to discover url: http://localhost:6161/app/discover#/
[00:32:51]               │ debg navigate to: http://localhost:6161/app/discover#/
[00:32:52]               │ debg browser[INFO] http://localhost:6161/app/discover?_t=1629276282103#/ 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:32:52]               │
[00:32:52]               │ debg browser[INFO] http://localhost:6161/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:32:52]               │ debg ... sleep(700) start
[00:32:53]               │ debg ... sleep(700) end
[00:32:53]               │ debg returned from get, calling refresh
[00:32:53]               │ debg browser[INFO] http://localhost:6161/app/discover?_t=1629276282103#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:'2015-09-18T06:31:44.000Z',to:'2015-09-23T18:31:44.000Z'))&_a=(columns:!(),filters:!(),index:'logstash-*',interval:auto,query:(language:kuery,query:''),sort:!(!('@timestamp',desc))) 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:32:53]               │
[00:32:53]               │ debg browser[INFO] http://localhost:6161/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:32:54]               │ debg currentUrl = http://localhost:6161/app/discover#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:%272015-09-18T06:31:44.000Z%27,to:%272015-09-23T18:31:44.000Z%27))&_a=(columns:!(),filters:!(),index:%27logstash-*%27,interval:auto,query:(language:kuery,query:%27%27),sort:!(!(%27@timestamp%27,desc)))
[00:32:54]               │          appUrl = http://localhost:6161/app/discover#/
[00:32:54]               │ debg TestSubjects.find(kibanaChrome)
[00:32:54]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:32:54]               │ debg ... sleep(501) start
[00:32:54]               │ debg ... sleep(501) end
[00:32:54]               │ debg in navigateTo url = http://localhost:6161/app/discover#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:%272015-09-18T06:31:44.000Z%27,to:%272015-09-23T18:31:44.000Z%27))&_a=(columns:!(),filters:!(),index:%27logstash-*%27,interval:auto,query:(language:kuery,query:%27%27),sort:!(!(%27@timestamp%27,desc)))
[00:32:54]             └-> should show rows by default
[00:32:54]               └-> "before each" hook: global before each for "should show rows by default"
[00:32:54]               │ debg TestSubjects.find(docTable)
[00:32:54]               │ debg Find.findByCssSelector('[data-test-subj="docTable"]') with timeout=10000
[00:32:58]               └- ✓ pass  (3.7s) "discover app discover data grid doc table should show rows by default"
[00:32:58]             └-> should refresh the table content when changing time window
[00:32:58]               └-> "before each" hook: global before each for "should refresh the table content when changing time window"
[00:32:58]               │ debg TestSubjects.find(docTable)
[00:32:58]               │ debg Find.findByCssSelector('[data-test-subj="docTable"]') with timeout=10000
[00:32:59]               │ debg Setting absolute range to Sep 20, 2015 @ 23:00:00.000 to Sep 20, 2015 @ 23:14:00.000
[00:32:59]               │ debg TestSubjects.exists(superDatePickerToggleQuickMenuButton)
[00:32:59]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerToggleQuickMenuButton"]') with timeout=20000
[00:32:59]               │ debg TestSubjects.exists(superDatePickerShowDatesButton)
[00:32:59]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerShowDatesButton"]') with timeout=2500
[00:33:01]               │ debg --- retry.tryForTime error: [data-test-subj="superDatePickerShowDatesButton"] is not displayed
[00:33:02]               │ debg TestSubjects.exists(superDatePickerstartDatePopoverButton)
[00:33:02]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerstartDatePopoverButton"]') with timeout=2500
[00:33:02]               │ debg TestSubjects.click(superDatePickerendDatePopoverButton)
[00:33:02]               │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerendDatePopoverButton"]') with timeout=10000
[00:33:02]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerendDatePopoverButton"]') with timeout=10000
[00:33:02]               │ debg Find.findByCssSelector('div.euiPopover__panel-isOpen') with timeout=10000
[00:33:02]               │ debg TestSubjects.click(superDatePickerAbsoluteTab)
[00:33:02]               │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:33:02]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:33:02]               │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:33:02]               │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:33:02]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:33:02]               │ debg TestSubjects.setValue(superDatePickerAbsoluteDateInput, Sep 20, 2015 @ 23:14:00.000)
[00:33:02]               │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:33:02]               │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:33:02]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:33:03]               │ debg TestSubjects.click(superDatePickerstartDatePopoverButton)
[00:33:03]               │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerstartDatePopoverButton"]') with timeout=10000
[00:33:03]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerstartDatePopoverButton"]') with timeout=10000
[00:33:03]               │ debg Find.waitForElementStale with timeout=10000
[00:33:03]               │ debg Find.findByCssSelector('div.euiPopover__panel-isOpen') with timeout=10000
[00:33:03]               │ debg TestSubjects.click(superDatePickerAbsoluteTab)
[00:33:03]               │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:33:03]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:33:03]               │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:33:03]               │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:33:03]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:33:03]               │ debg TestSubjects.setValue(superDatePickerAbsoluteDateInput, Sep 20, 2015 @ 23:00:00.000)
[00:33:03]               │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:33:03]               │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:33:03]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:33:04]               │ debg Waiting up to 20000ms for Timepicker popover to close...
[00:33:04]               │ debg TestSubjects.exists(superDatePickerAbsoluteDateInput)
[00:33:04]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=2500
[00:33:04]               │ debg --- retry.tryForTime error: [data-test-subj="superDatePickerAbsoluteDateInput"] is not displayed
[00:33:07]               │ debg --- retry.tryForTime failed again with the same message...
[00:33:07]               │ debg TestSubjects.exists(superDatePickerApplyTimeButton)
[00:33:07]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerApplyTimeButton"]') with timeout=2500
[00:33:10]               │ debg --- retry.tryForTime error: [data-test-subj="superDatePickerApplyTimeButton"] is not displayed
[00:33:10]               │ debg TestSubjects.click(querySubmitButton)
[00:33:10]               │ debg Find.clickByCssSelector('[data-test-subj="querySubmitButton"]') with timeout=10000
[00:33:10]               │ debg Find.findByCssSelector('[data-test-subj="querySubmitButton"]') with timeout=10000
[00:33:11]               │ debg Find.waitForElementStale with timeout=10000
[00:33:11]               │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:33:11]               │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:33:11]               │ debg TestSubjects.missingOrFail(loadingSpinner)
[00:33:11]               │ debg Find.waitForDeletedByCssSelector('[data-test-subj="loadingSpinner"]') with timeout=100000
[00:33:12]               │ debg isGlobalLoadingIndicatorVisible
[00:33:12]               │ debg TestSubjects.exists(globalLoadingIndicator)
[00:33:12]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:33:13]               │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:33:14]               │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:33:14]               │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:33:14]               │ debg TestSubjects.find(docTable)
[00:33:14]               │ debg Find.findByCssSelector('[data-test-subj="docTable"]') with timeout=10000
[00:33:14]               └- ✓ pass  (16.3s) "discover app discover data grid doc table should refresh the table content when changing time window"
[00:33:14]             └-> should show popover with expanded cell content by click on expand button
[00:33:14]               └-> "before each" hook: global before each for "should show popover with expanded cell content by click on expand button"
[00:33:14]               │ debg open popover with expanded cell content to get json from the editor
[00:33:14]               │ debg Setting absolute range to Sep 19, 2015 @ 06:31:44.000 to Sep 23, 2015 @ 18:31:44.000
[00:33:14]               │ debg TestSubjects.exists(superDatePickerToggleQuickMenuButton)
[00:33:14]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerToggleQuickMenuButton"]') with timeout=20000
[00:33:14]               │ debg TestSubjects.exists(superDatePickerShowDatesButton)
[00:33:14]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerShowDatesButton"]') with timeout=2500
[00:33:17]               │ debg --- retry.tryForTime error: [data-test-subj="superDatePickerShowDatesButton"] is not displayed
[00:33:17]               │ debg TestSubjects.exists(superDatePickerstartDatePopoverButton)
[00:33:17]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerstartDatePopoverButton"]') with timeout=2500
[00:33:17]               │ debg TestSubjects.click(superDatePickerendDatePopoverButton)
[00:33:17]               │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerendDatePopoverButton"]') with timeout=10000
[00:33:17]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerendDatePopoverButton"]') with timeout=10000
[00:33:17]               │ debg Find.findByCssSelector('div.euiPopover__panel-isOpen') with timeout=10000
[00:33:17]               │ debg TestSubjects.click(superDatePickerAbsoluteTab)
[00:33:17]               │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:33:17]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:33:18]               │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:33:18]               │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:33:18]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:33:18]               │ debg TestSubjects.setValue(superDatePickerAbsoluteDateInput, Sep 23, 2015 @ 18:31:44.000)
[00:33:18]               │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:33:18]               │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:33:18]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:33:18]               │ debg TestSubjects.click(superDatePickerstartDatePopoverButton)
[00:33:18]               │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerstartDatePopoverButton"]') with timeout=10000
[00:33:18]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerstartDatePopoverButton"]') with timeout=10000
[00:33:18]               │ debg Find.waitForElementStale with timeout=10000
[00:33:18]               │ debg Find.findByCssSelector('div.euiPopover__panel-isOpen') with timeout=10000
[00:33:18]               │ debg TestSubjects.click(superDatePickerAbsoluteTab)
[00:33:18]               │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:33:18]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:33:18]               │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:33:18]               │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:33:18]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:33:19]               │ debg TestSubjects.setValue(superDatePickerAbsoluteDateInput, Sep 19, 2015 @ 06:31:44.000)
[00:33:19]               │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:33:19]               │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:33:19]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:33:19]               │ debg Waiting up to 20000ms for Timepicker popover to close...
[00:33:19]               │ debg TestSubjects.exists(superDatePickerAbsoluteDateInput)
[00:33:19]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=2500
[00:33:19]               │ debg --- retry.tryForTime error: [data-test-subj="superDatePickerAbsoluteDateInput"] is not displayed
[00:33:22]               │ debg --- retry.tryForTime failed again with the same message...
[00:33:22]               │ debg TestSubjects.exists(superDatePickerApplyTimeButton)
[00:33:22]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerApplyTimeButton"]') with timeout=2500
[00:33:25]               │ debg --- retry.tryForTime error: [data-test-subj="superDatePickerApplyTimeButton"] is not displayed
[00:33:25]               │ debg TestSubjects.click(querySubmitButton)
[00:33:25]               │ debg Find.clickByCssSelector('[data-test-subj="querySubmitButton"]') with timeout=10000
[00:33:25]               │ debg Find.findByCssSelector('[data-test-subj="querySubmitButton"]') with timeout=10000
[00:33:26]               │ debg Find.waitForElementStale with timeout=10000
[00:33:26]               │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:33:26]               │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:33:26]               │ debg TestSubjects.missingOrFail(loadingSpinner)
[00:33:26]               │ debg Find.waitForDeletedByCssSelector('[data-test-subj="loadingSpinner"]') with timeout=100000
[00:33:26]               │ debg Find.findByCssSelector('.euiDataGrid') with timeout=10000
[00:33:26]               │ debg Find.findByCssSelector('[data-test-subj="dataGridWrapper"] [data-test-subj="dataGridRowCell"]:nth-of-type(5)') with timeout=10000
[00:33:27]               │ debg open expanded document flyout to get json
[00:33:27]               │ debg TestSubjects.find(docTable)
[00:33:27]               │ debg Find.findByCssSelector('[data-test-subj="docTable"]') with timeout=10000
[00:33:32]               │ debg Find.clickByCssSelectorWhenNotDisabled('#kbn_doc_viewer_tab_1') with timeout=10000
[00:33:32]               │ debg Find.findByCssSelector('#kbn_doc_viewer_tab_1') with timeout=10000
[00:33:33]               │ debg Waiting up to 20000ms for codeEditorValue to be valid...
[00:34:47]               │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_task_manager_8.0.0_001/7gSAN0O6TJGOjH1Q3IHJYA] update_mapping [_doc]
[00:39:14]               └- ✖ fail: discover app discover data grid doc table should show popover with expanded cell content by click on expand button
[00:39:14]               │      Error: Timeout of 360000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/dev/shm/workspace/parallel/6/kibana/test/functional/apps/discover/_data_grid_doc_table.ts)
[00:39:14]               │       at listOnTimeout (internal/timers.js:557:17)
[00:39:14]               │       at processTimers (internal/timers.js:500:7)
[00:39:14]               │ 
[00:39:14]               │ 

Stack Trace

Error: Timeout of 360000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/dev/shm/workspace/parallel/6/kibana/test/functional/apps/discover/_data_grid_doc_table.ts)
    at listOnTimeout (internal/timers.js:557:17)
    at processTimers (internal/timers.js:500:7)

Metrics [docs]

✅ unchanged

History

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

cc @kertal

@timroes timroes added Team:DataDiscovery Discover App Team (Document Explorer, Saved Search, Surrounding documents, Graph) :DataDiscovery/fix-it-week and removed Team:Visualizations Visualization editors, elastic-charts and infrastructure :KibanaApp/fix-it-week labels Aug 31, 2021
@kertal
Copy link
Member Author

kertal commented Dec 20, 2021

hopefully harden functional test

@kertal kertal changed the title [Discover] Unskip and improve popover test [Discover] Unskip and improve document explorer field expand test Dec 20, 2021
@kertal kertal added v8.1.0 release_note:skip Skip the PR/issue when compiling release notes labels Dec 21, 2021
@kertal kertal marked this pull request as ready for review December 21, 2021 07:05
@kertal kertal requested a review from a team as a code owner December 21, 2021 07:05
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-data-discovery (Team:DataDiscovery)

@kertal
Copy link
Member Author

kertal commented Dec 21, 2021

@elasticmachine merge upstream

Copy link
Contributor

@dimaanj dimaanj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code LGTM.

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

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

cc @kertal

@kertal kertal merged commit 69302a1 into elastic:main Dec 22, 2021
Discover automation moved this from PRs to Done Dec 22, 2021
@kibanamachine kibanamachine added the backport:skip This commit does not require backporting label Dec 22, 2021
kertal added a commit that referenced this pull request Feb 16, 2022
…est (#107311) (#121847)

* [Discover] Unskip and improve document explorer field expand test (#107311)

* Fix functional

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
kertal added a commit that referenced this pull request Feb 16, 2022
…st (#107311) (#121846)

* [Discover] Unskip and improve document explorer field expand test (#107311)

* Update _data_grid_doc_table.ts

* Update _data_grid_doc_table.ts

* Update _data_grid_doc_table.ts

* Update _data_grid_doc_table.ts

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting :DataDiscovery/fix-it-week Feature:Discover Discover Application release_note:skip Skip the PR/issue when compiling release notes Team:DataDiscovery Discover App Team (Document Explorer, Saved Search, Surrounding documents, Graph) v7.17.0 v8.0.0 v8.1.0
Projects
No open projects
7 participants