2022-02-15 22:43:04 +00:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
2022-02-18 00:19:50 +00:00
|
|
|
exports[`Table of contents when \`vector-is-collapse-sections-enabled\` is false renders 1`] = `
|
2022-03-14 21:21:57 +00:00
|
|
|
"<nav id=\\"mw-panel-toc\\" class=\\"sidebar-toc\\" role=\\"navigation\\" aria-labelledby=\\"sidebar-toc-header\\" data-event-name=\\"ui.sidebar-toc\\">
|
2022-02-18 00:19:50 +00:00
|
|
|
<div class=\\"sidebar-toc-header\\">
|
|
|
|
<h2 class=\\"sidebar-toc-title\\" aria-hidden=\\"true\\">Contents</h2>
|
|
|
|
</div>
|
2022-03-17 18:35:43 +00:00
|
|
|
<ul class=\\"sidebar-toc-contents\\">
|
2022-03-15 16:34:59 +00:00
|
|
|
<li id=\\"toc-mw-content-text\\" class=\\"sidebar-toc-list-item sidebar-toc-level-1\\">
|
|
|
|
<a href=\\"#top-page\\" class=\\"sidebar-toc-link\\">
|
|
|
|
<div class=\\"sidebar-toc-text\\">Beginning</div>
|
|
|
|
</a>
|
|
|
|
</li>
|
2022-04-01 18:14:02 +00:00
|
|
|
<li id=\\"toc-1\\" class=\\"sidebar-toc-list-item sidebar-toc-level-1 sidebar-toc-list-item-expanded\\">
|
2022-02-18 00:19:50 +00:00
|
|
|
<a class=\\"sidebar-toc-link\\" href=\\"#foo\\">
|
|
|
|
<div class=\\"sidebar-toc-text\\">
|
|
|
|
<span class=\\"sidebar-toc-numb\\">1</span>foo</div>
|
|
|
|
</a>
|
2022-02-14 18:55:50 +00:00
|
|
|
<ul class=\\"sidebar-toc-list\\">
|
|
|
|
</ul>
|
2022-02-18 00:19:50 +00:00
|
|
|
</li>
|
2022-04-01 18:14:02 +00:00
|
|
|
<li id=\\"toc-2\\" class=\\"sidebar-toc-list-item sidebar-toc-level-1 sidebar-toc-list-item-expanded\\">
|
2022-02-18 00:19:50 +00:00
|
|
|
<a class=\\"sidebar-toc-link\\" href=\\"#bar\\">
|
|
|
|
<div class=\\"sidebar-toc-text\\">
|
|
|
|
<span class=\\"sidebar-toc-numb\\">2</span>bar</div>
|
|
|
|
</a>
|
2022-02-14 18:55:50 +00:00
|
|
|
<button class=\\"mw-ui-icon mw-ui-icon-wikimedia-downTriangle mw-ui-icon-small sidebar-toc-toggle\\"></button>
|
|
|
|
<ul class=\\"sidebar-toc-list\\">
|
2022-04-01 18:14:02 +00:00
|
|
|
<li id=\\"toc-2.1\\" class=\\"sidebar-toc-list-item sidebar-toc-level-2\\">
|
2022-02-18 00:19:50 +00:00
|
|
|
<a class=\\"sidebar-toc-link\\" href=\\"#baz\\">
|
|
|
|
<div class=\\"sidebar-toc-text\\">
|
|
|
|
<span class=\\"sidebar-toc-numb\\">2.1</span>baz</div>
|
|
|
|
</a>
|
|
|
|
<ul class=\\"sidebar-toc-list\\">
|
2022-04-01 18:14:02 +00:00
|
|
|
<li id=\\"toc-2.1.1\\" class=\\"sidebar-toc-list-item sidebar-toc-level-3\\">
|
2022-02-14 18:55:50 +00:00
|
|
|
<a class=\\"sidebar-toc-link\\" href=\\"#qux\\">
|
|
|
|
<div class=\\"sidebar-toc-text\\">
|
|
|
|
<span class=\\"sidebar-toc-numb\\">2.1.1</span>qux</div>
|
|
|
|
</a>
|
|
|
|
<ul class=\\"sidebar-toc-list\\">
|
2022-02-18 00:19:50 +00:00
|
|
|
</ul>
|
|
|
|
</li>
|
2022-02-14 18:55:50 +00:00
|
|
|
</ul>
|
2022-02-18 00:19:50 +00:00
|
|
|
</li>
|
2022-02-14 18:55:50 +00:00
|
|
|
</ul>
|
|
|
|
</li>
|
2022-04-01 18:14:02 +00:00
|
|
|
<li id=\\"toc-3\\" class=\\"sidebar-toc-list-item sidebar-toc-level-1 sidebar-toc-list-item-expanded\\">
|
2022-02-14 18:55:50 +00:00
|
|
|
<a class=\\"sidebar-toc-link\\" href=\\"#quux\\">
|
2022-02-18 00:19:50 +00:00
|
|
|
<div class=\\"sidebar-toc-text\\">
|
2022-02-14 18:55:50 +00:00
|
|
|
<span class=\\"sidebar-toc-numb\\">3</span>quux</div>
|
2022-02-18 00:19:50 +00:00
|
|
|
</a>
|
2022-02-14 18:55:50 +00:00
|
|
|
<ul class=\\"sidebar-toc-list\\">
|
|
|
|
</ul>
|
2022-02-18 00:19:50 +00:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
"
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`Table of contents when \`vector-is-collapse-sections-enabled\` is true renders 1`] = `
|
2022-03-14 21:21:57 +00:00
|
|
|
"<nav id=\\"mw-panel-toc\\" class=\\"sidebar-toc\\" role=\\"navigation\\" aria-labelledby=\\"sidebar-toc-header\\" data-event-name=\\"ui.sidebar-toc\\">
|
2022-02-15 22:43:04 +00:00
|
|
|
<div class=\\"sidebar-toc-header\\">
|
|
|
|
<h2 class=\\"sidebar-toc-title\\" aria-hidden=\\"true\\">Contents</h2>
|
|
|
|
</div>
|
2022-03-17 18:35:43 +00:00
|
|
|
<ul class=\\"sidebar-toc-contents\\">
|
2022-03-15 16:34:59 +00:00
|
|
|
<li id=\\"toc-mw-content-text\\" class=\\"sidebar-toc-list-item sidebar-toc-level-1\\">
|
|
|
|
<a href=\\"#top-page\\" class=\\"sidebar-toc-link\\">
|
|
|
|
<div class=\\"sidebar-toc-text\\">Beginning</div>
|
|
|
|
</a>
|
|
|
|
</li>
|
2022-04-01 18:14:02 +00:00
|
|
|
<li id=\\"toc-1\\" class=\\"sidebar-toc-list-item sidebar-toc-level-1\\">
|
2022-02-15 22:43:04 +00:00
|
|
|
<a class=\\"sidebar-toc-link\\" href=\\"#foo\\">
|
|
|
|
<div class=\\"sidebar-toc-text\\">
|
|
|
|
<span class=\\"sidebar-toc-numb\\">1</span>foo</div>
|
|
|
|
</a>
|
2022-02-14 18:55:50 +00:00
|
|
|
<ul class=\\"sidebar-toc-list\\">
|
|
|
|
</ul>
|
2022-02-15 22:43:04 +00:00
|
|
|
</li>
|
2022-04-01 18:14:02 +00:00
|
|
|
<li id=\\"toc-2\\" class=\\"sidebar-toc-list-item sidebar-toc-level-1\\">
|
2022-02-15 22:43:04 +00:00
|
|
|
<a class=\\"sidebar-toc-link\\" href=\\"#bar\\">
|
|
|
|
<div class=\\"sidebar-toc-text\\">
|
|
|
|
<span class=\\"sidebar-toc-numb\\">2</span>bar</div>
|
|
|
|
</a>
|
2022-02-14 18:55:50 +00:00
|
|
|
<button class=\\"mw-ui-icon mw-ui-icon-wikimedia-downTriangle mw-ui-icon-small sidebar-toc-toggle\\"></button>
|
|
|
|
<ul class=\\"sidebar-toc-list\\">
|
2022-04-01 18:14:02 +00:00
|
|
|
<li id=\\"toc-2.1\\" class=\\"sidebar-toc-list-item sidebar-toc-level-2\\">
|
2022-02-15 22:43:04 +00:00
|
|
|
<a class=\\"sidebar-toc-link\\" href=\\"#baz\\">
|
|
|
|
<div class=\\"sidebar-toc-text\\">
|
|
|
|
<span class=\\"sidebar-toc-numb\\">2.1</span>baz</div>
|
|
|
|
</a>
|
|
|
|
<ul class=\\"sidebar-toc-list\\">
|
2022-04-01 18:14:02 +00:00
|
|
|
<li id=\\"toc-2.1.1\\" class=\\"sidebar-toc-list-item sidebar-toc-level-3\\">
|
2022-02-14 18:55:50 +00:00
|
|
|
<a class=\\"sidebar-toc-link\\" href=\\"#qux\\">
|
|
|
|
<div class=\\"sidebar-toc-text\\">
|
|
|
|
<span class=\\"sidebar-toc-numb\\">2.1.1</span>qux</div>
|
|
|
|
</a>
|
|
|
|
<ul class=\\"sidebar-toc-list\\">
|
2022-02-15 22:43:04 +00:00
|
|
|
</ul>
|
|
|
|
</li>
|
2022-02-14 18:55:50 +00:00
|
|
|
</ul>
|
2022-02-15 22:43:04 +00:00
|
|
|
</li>
|
2022-02-14 18:55:50 +00:00
|
|
|
</ul>
|
|
|
|
</li>
|
2022-04-01 18:14:02 +00:00
|
|
|
<li id=\\"toc-3\\" class=\\"sidebar-toc-list-item sidebar-toc-level-1\\">
|
2022-02-14 18:55:50 +00:00
|
|
|
<a class=\\"sidebar-toc-link\\" href=\\"#quux\\">
|
2022-02-15 22:43:04 +00:00
|
|
|
<div class=\\"sidebar-toc-text\\">
|
2022-02-14 18:55:50 +00:00
|
|
|
<span class=\\"sidebar-toc-numb\\">3</span>quux</div>
|
2022-02-15 22:43:04 +00:00
|
|
|
</a>
|
2022-02-14 18:55:50 +00:00
|
|
|
<ul class=\\"sidebar-toc-list\\">
|
|
|
|
</ul>
|
2022-02-15 22:43:04 +00:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
"
|
|
|
|
`;
|