2022-08-16 21:09:02 +00:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
|
|
|
exports[`addPortletLinkHandler Adds a span with icon class to dropdown menus 1`] = `
|
|
|
|
"
|
|
|
|
<ul class=\\"vector-menu vector-menu-dropdown\\">
|
|
|
|
<li class=\\"mw-list-item mw-list-item-js\\" id=\\"test-id\\">
|
2022-10-27 23:52:23 +00:00
|
|
|
<a href=\\"#test-href\\">
|
2022-08-16 21:09:02 +00:00
|
|
|
<span>
|
|
|
|
test link content
|
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>"
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`addPortletLinkHandler Does not add an icon when noicon class is present 1`] = `
|
|
|
|
"
|
2023-01-10 18:41:49 +00:00
|
|
|
<ul class=\\"vector-menu vector-menu-dropdown\\">
|
2022-08-16 21:09:02 +00:00
|
|
|
<li class=\\"mw-list-item mw-list-item-js\\" id=\\"test-id\\">
|
|
|
|
<a href=\\"#test-href\\">
|
|
|
|
<span>
|
|
|
|
test link content
|
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>"
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`addPortletLinkHandler JS portlet should be moved to more menu (#p-cactions) at narrow widths 1`] = `
|
|
|
|
"
|
|
|
|
<div class=\\"mw-article-toolbar-container\\" style=\\"width:1000px\\">
|
|
|
|
|
|
|
|
<div id=\\"p-namespaces\\" style=\\"width:1001px\\"></div>
|
|
|
|
|
|
|
|
<div id=\\"p-variants\\"></div>
|
|
|
|
|
|
|
|
<div id=\\"p-cactions\\">
|
|
|
|
<ul>
|
2022-09-28 15:40:43 +00:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<ul id=\\"p-views\\" class=\\"vector-menu vector-menu-dropdown\\">
|
2022-08-16 21:09:02 +00:00
|
|
|
<li class=\\"mw-list-item mw-list-item-js\\" id=\\"test-id\\">
|
2022-09-28 15:40:43 +00:00
|
|
|
<a href=\\"#test-href\\">
|
2022-08-16 21:09:02 +00:00
|
|
|
<span>
|
|
|
|
test link content
|
|
|
|
</span>
|
|
|
|
</a>
|
2022-09-28 15:40:43 +00:00
|
|
|
</li>
|
2022-08-16 21:09:02 +00:00
|
|
|
</ul>
|
|
|
|
</div>"
|
|
|
|
`;
|