Skip to content

Conversation

@wylieconlon
Copy link
Contributor

Backports the following commits to 7.12:

@wylieconlon wylieconlon added the backport This PR is a backport of another PR label Feb 24, 2021
@wylieconlon wylieconlon enabled auto-merge (squash) February 24, 2021 14:57
@kibanamachine
Copy link
Contributor

💛 Build succeeded, but was flaky


Test Failures

Kibana Pipeline / general / X-Pack Accessibility Tests.x-pack/test/accessibility/apps/search_profiler·ts.Accessibility Search Profiler Editor click on the dropdown link

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:01:03]         └-: Accessibility Search Profiler Editor
[00:01:03]           └-> "before all" hook for "input the JSON in the aceeditor"
[00:01:03]           └-> "before all" hook for "input the JSON in the aceeditor"
[00:01:03]             │ debg navigating to searchProfiler url: http://localhost:61151/app/dev_tools#/searchprofiler
[00:01:03]             │ debg navigate to: http://localhost:61151/app/dev_tools#/searchprofiler
[00:01:04]             │ debg browser[INFO] http://localhost:61151/app/dev_tools?_t=1614180971835#/searchprofiler 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:01:04]             │
[00:01:04]             │ debg browser[INFO] http://localhost:61151/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:01:04]             │ debg ... sleep(700) start
[00:01:05]             │ debg ... sleep(700) end
[00:01:05]             │ debg returned from get, calling refresh
[00:01:06]             │ERROR browser[SEVERE] http://localhost:61151/39029/bundles/core/core.entry.js 12:160284 TypeError: Failed to fetch
[00:01:06]             │          at fetch_Fetch.fetchResponse (http://localhost:61151/39029/bundles/core/core.entry.js:6:32451)
[00:01:06]             │          at async interceptResponse (http://localhost:61151/39029/bundles/core/core.entry.js:6:28637)
[00:01:06]             │          at async http://localhost:61151/39029/bundles/core/core.entry.js:6:31117
[00:01:06]             │ debg browser[INFO] http://localhost:61151/app/dev_tools?_t=1614180971835#/searchprofiler 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:01:06]             │
[00:01:06]             │ debg browser[INFO] http://localhost:61151/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:01:06]             │ debg currentUrl = http://localhost:61151/app/dev_tools#/searchprofiler
[00:01:06]             │          appUrl = http://localhost:61151/app/dev_tools#/searchprofiler
[00:01:06]             │ debg TestSubjects.find(kibanaChrome)
[00:01:06]             │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:01:06]             │ debg ... sleep(501) start
[00:01:07]             │ debg ... sleep(501) end
[00:01:07]             │ debg in navigateTo url = http://localhost:61151/app/dev_tools#/searchprofiler
[00:01:07]             │ debg TestSubjects.exists(statusPageContainer)
[00:01:07]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:01:09]             │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:01:10]             │ debg TestSubjects.exists(searchProfilerEditor)
[00:01:10]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="searchProfilerEditor"]') with timeout=2500
[00:01:11]           └-> input the JSON in the aceeditor
[00:01:11]             └-> "before each" hook: global before each for "input the JSON in the aceeditor"
[00:01:11]             │ debg TestSubjects.find(searchProfilerEditor)
[00:01:11]             │ debg Find.findByCssSelector('[data-test-subj="searchProfilerEditor"]') with timeout=10000
[00:01:11]             └- ✓ pass  (706ms) "Accessibility Search Profiler Editor input the JSON in the aceeditor"
[00:01:11]           └-> click on the profile button
[00:01:11]             └-> "before each" hook: global before each for "click on the profile button"
[00:01:11]             │ debg TestSubjects.click(profileButton)
[00:01:11]             │ debg Find.clickByCssSelector('[data-test-subj="profileButton"]') with timeout=10000
[00:01:11]             │ debg Find.findByCssSelector('[data-test-subj="profileButton"]') with timeout=10000
[00:01:12]             └- ✓ pass  (354ms) "Accessibility Search Profiler Editor click on the profile button"
[00:01:12]           └-> click on the dropdown link
[00:01:12]             └-> "before each" hook: global before each for "click on the dropdown link"
[00:01:12]             │ debg TestSubjects.findAll(viewShardDetails)
[00:01:12]             │ debg Find.allByCssSelector('[data-test-subj="viewShardDetails"]') with timeout=10000
[00:01:14]             │ info Taking screenshot "/dev/shm/workspace/parallel/15/kibana/x-pack/test/functional/screenshots/failure/Accessibility Search Profiler Editor click on the dropdown link.png"
[00:01:14]             │ info Current URL is: http://localhost:61151/app/dev_tools#/searchprofiler
[00:01:14]             │ info Saving page source to: /dev/shm/workspace/parallel/15/kibana/x-pack/test/functional/failure_debug/html/Accessibility Search Profiler Editor click on the dropdown link.html
[00:01:14]             └- ✖ fail: Accessibility Search Profiler Editor click on the dropdown link
[00:01:14]             │      Error: a11y report:
[00:01:14]             │ 
[00:01:14]             │ VIOLATION
[00:01:14]             │   [aria-hidden-focus]: Ensures aria-hidden elements do not contain focusable elements
[00:01:14]             │     Help: https://dequeuniversity.com/rules/axe/4.0/aria-hidden-focus?application=axeAPI
[00:01:14]             │     Elements:
[00:01:14]             │       - header
[00:01:14]             │       - .euiTabs[role="tablist"][data-aria-hidden="true"]
[00:01:14]             │       - .prfDevTool__page__bodyGroup
[00:01:14]             │       - div[data-focus-guard="true"][data-aria-hidden="true"][aria-hidden="true"]:nth-child(2)
[00:01:14]             │       - div[data-focus-guard="true"][data-aria-hidden="true"][aria-hidden="true"]:nth-child(3)
[00:01:14]             │       - div[data-focus-guard="true"][data-aria-hidden="true"][aria-hidden="true"]:nth-child(5)
[00:01:14]             │       at Accessibility.testAxeReport (/dev/shm/workspace/parallel/15/kibana/test/accessibility/services/a11y/a11y.ts:76:15)
[00:01:14]             │       at Accessibility.testAppSnapshot (/dev/shm/workspace/parallel/15/kibana/test/accessibility/services/a11y/a11y.ts:49:18)
[00:01:14]             │       at runMicrotasks (<anonymous>)
[00:01:14]             │       at processTicksAndRejections (internal/process/task_queues.js:93:5)
[00:01:14]             │       at Context.<anonymous> (test/accessibility/apps/search_profiler.ts:64:7)
[00:01:14]             │       at Object.apply (/dev/shm/workspace/parallel/15/kibana/packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:01:14]             │ 
[00:01:14]             │ 

Stack Trace

Error: a11y report:

VIOLATION
  [aria-hidden-focus]: Ensures aria-hidden elements do not contain focusable elements
    Help: https://dequeuniversity.com/rules/axe/4.0/aria-hidden-focus?application=axeAPI
    Elements:
      - header
      - .euiTabs[role="tablist"][data-aria-hidden="true"]
      - .prfDevTool__page__bodyGroup
      - div[data-focus-guard="true"][data-aria-hidden="true"][aria-hidden="true"]:nth-child(2)
      - div[data-focus-guard="true"][data-aria-hidden="true"][aria-hidden="true"]:nth-child(3)
      - div[data-focus-guard="true"][data-aria-hidden="true"][aria-hidden="true"]:nth-child(5)
    at Accessibility.testAxeReport (/dev/shm/workspace/parallel/15/kibana/test/accessibility/services/a11y/a11y.ts:76:15)
    at Accessibility.testAppSnapshot (/dev/shm/workspace/parallel/15/kibana/test/accessibility/services/a11y/a11y.ts:49:18)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at Context.<anonymous> (test/accessibility/apps/search_profiler.ts:64:7)
    at Object.apply (/dev/shm/workspace/parallel/15/kibana/packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
lens 918.4KB 918.4KB +25.0B

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

@wylieconlon wylieconlon merged commit 416e397 into elastic:7.12 Feb 24, 2021
@wylieconlon wylieconlon deleted the backport/7.12/pr-92508 branch February 24, 2021 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants