Add token UI concept to Link UI #94445
Annotations
2 errors and 1 warning
Running the tests:
packages/block-editor/src/components/link-control/test/index.js#L1542
Error: expect(element).not.toBeInTheDocument()
expected document not to contain element, found <div aria-label="Currently selected" class="block-editor-link-control__search-item is-current is-preview"><div class="block-editor-link-control__search-item-top"><span class="block-editor-link-control__search-item-header"><span class="block-editor-link-control__search-item-icon"><svg aria-hidden="true" focusable="false" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M12 3.3c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8s-4-8.8-8.8-8.8zm6.5 5.5h-2.6C15.4 7.3 14.8 6 14 5c2 .6 3.6 2 4.5 3.8zm.7 3.2c0 .6-.1 1.2-.2 1.8h-2.9c.1-.6.1-1.2.1-1.8s-.1-1.2-.1-1.8H19c.2.6.2 1.2.2 1.8zM12 18.7c-1-.7-1.8-1.9-2.3-3.5h4.6c-.5 1.6-1.3 2.9-2.3 3.5zm-2.6-4.9c-.1-.6-.1-1.1-.1-1.8 0-.6.1-1.2.1-1.8h5.2c.1.6.1 1.1.1 1.8s-.1 1.2-.1 1.8H9.4zM4.8 12c0-.6.1-1.2.2-1.8h2.9c-.1.6-.1 1.2-.1 1.8 0 .6.1 1.2.1 1.8H5c-.2-.6-.2-1.2-.2-1.8zM12 5.3c1 .7 1.8 1.9 2.3 3.5H9.7c.5-1.6 1.3-2.9 2.3-3.5zM10 5c-.8 1-1.4 2.3-1.8 3.8H5.5C6.4 7 8 5.6 10 5zM5.5 15.3h2.6c.4 1.5 1 2.8 1.8 3.7-1.8-.6-3.5-2-4.4-3.7zM14 19c.8-1 1.4-2.2 1.8-3.7h2.6C17.6 17 16 18.4 14 19z" /></svg></span><span class="block-editor-link-control__search-item-details"><a class="components-external-link block-editor-link-control__search-item-title" href="?p=2" rel="external noreferrer noopener" target="_blank"><span class="components-truncate css-1vhq0cm-View-truncateLines e19lxcc00" data-wp-c16t="true" data-wp-component="Truncate">Hello Page</span><span class="components-visually-hidden css-1mm2cvy-View e19lxcc00" data-wp-c16t="true" data-wp-component="VisuallyHidden" style="border: 0px; clip: rect(1px, 1px, 1px, 1px); clip-path: inset( 50% ); height: 1px; margin: -1px; overflow: hidden; padding: 0px; position: absolute; width: 1px; word-wrap: normal;">(opens in a new tab)</span><svg aria-hidden="true" class="components-external-link__icon css-16iaek2-StyledIcon esh4a730" focusable="false" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z" /></svg></a><span class="block-editor-link-control__search-item-info"><span class="components-truncate css-1vhq0cm-View-truncateLines e19lxcc00" data-wp-c16t="true" data-wp-component="Truncate">?p=2</span></span></span></span><button aria-label="Edit" class="components-button block-editor-link-control__search-item-action is-compact has-icon" disabled="" type="button"><svg aria-hidden="true" focusable="false" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z" /></svg></button></div></div> instead
at Object.toBeInTheDocument (/home/runner/work/gutenberg/gutenberg/packages/block-editor/src/components/link-control/test/index.js:1542:31)
|
Running the tests
Process completed with exit code 1.
|
|
The logs for this run have expired and are no longer available.
Loading