Composite: deprecate legacy, unstable version #113945
Annotations
2 errors and 1 warning
packages/components/src/composite/legacy/test/index.tsx#L334
Error: expect(element).toHaveFocus()
Expected element with focus:
<button id="test-id-2" tabindex="-1" type="button">Item 2</button>
Received element with focus:
<button data-active-item="true" data-focus-visible="true" id="test-id-1" type="button">Item 1</button>
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div>
<div
aria-label="With `state` prop Supports `currentId`"
id="test-id"
>
<button
data-active-item="true"
data-focus-visible="true"
id="test-id-1"
type="button"
>
Item 1
</button>
<button
id="test-id-2"
tabindex="-1"
type="button"
>
Item 2
</button>
<button
id="test-id-3"
tabindex="-1"
type="button"
>
Item 3
</button>
</div>
</div>
</body>
</html>
at toHaveFocus (/home/runner/work/gutenberg/gutenberg/packages/components/src/composite/legacy/test/index.tsx:334:40)
at runWithExpensiveErrorDiagnosticsDisabled (/home/runner/work/gutenberg/gutenberg/node_modules/@testing-library/dom/dist/config.js:47:12)
at checkCallback (/home/runner/work/gutenberg/gutenberg/node_modules/@testing-library/dom/dist/wait-for.js:121:77)
at checkRealTimersCallback (/home/runner/work/gutenberg/gutenberg/node_modules/@testing-library/dom/dist/wait-for.js:115:16)
at Timeout.task [as _onTimeout] (/home/runner/work/gutenberg/gutenberg/node_modules/jsdom/lib/jsdom/browser/Window.js:553:19)
at listOnTimeout (node:internal/timers:594:17)
at processTimers (node:internal/timers:529:7)
|
|
|
This job failed
Loading