Try: add content flag to blocks with no content attributes #122646
Annotations
2 errors and 1 warning
Running the tests:
packages/components/src/menu/test/index.tsx#L435
Error: expect(element).toHaveFocus()
Expected element with focus:
<div class="css-r011jo-MenuItem-baseItem e1wg7tti12" id=":r45:" role="menuitem" tabindex="-1"><span class="css-1ifkam9-ItemPrefixWrapper e1wg7tti9" /><div class="css-1xj79tx-MenuItemContentWrapper e1wg7tti8"><div class="css-1xzeyi5-MenuItemChildrenWrapper e1wg7tti7">Submenu item 1</div></div></div>
Received element with focus:
<div aria-labelledby=":r3f:" aria-orientation="vertical" class="css-1q51k20-MenuPopoverInnerWrapper e1wg7tti13" data-dialog="" data-focus-visible="true" data-open="true" data-side="right" id=":r42:" role="menu" style="position: relative; --dialog-viewport-height: 768px;" tabindex="0"><div class="css-r011jo-MenuItem-baseItem e1wg7tti12" id=":r45:" role="menuitem" tabindex="-1"><span class="css-1ifkam9-ItemPrefixWrapper e1wg7tti9" /><div class="css-1xj79tx-MenuItemContentWrapper e1wg7tti8"><div class="css-1xzeyi5-MenuItemChildrenWrapper e1wg7tti7">Submenu item 1</div></div></div><div class="css-r011jo-MenuItem-baseItem e1wg7tti12" id=":r47:" role="menuitem" tabindex="-1"><span class="css-1ifkam9-ItemPrefixWrapper e1wg7tti9" /><div class="css-1xj79tx-MenuItemContentWrapper e1wg7tti8"><div class="css-1xzeyi5-MenuItemChildrenWrapper e1wg7tti7">Submenu item 2</div></div></div></div>
at Object.toHaveFocus (/home/runner/work/gutenberg/gutenberg/packages/components/src/menu/test/index.tsx:435:6)
at runNextTicks (node:internal/process/task_queues:60:5)
at processTimers (node:internal/timers:516:9)
|
Running the tests
Process completed with exit code 1.
|
Setup Node.js and install dependencies
Both node-version and node-version-file inputs are specified, only node-version will be used
|
Loading