Skip to content

Commit bbbcb19

Browse files
committed
refactor pdf assertions
1 parent 5f6122d commit bbbcb19

File tree

1 file changed

+16
-11
lines changed

1 file changed

+16
-11
lines changed

tests/fixtures/expected/build-pdf/book.html

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,35 @@
22
<head><title>book</title></head>
33
<body>
44
<div id="book-index">
5-
<div class="section" id="book-index-book">
6-
<h1>Book</h1>
5+
<div class="section">
6+
<h1 id="book-index-book"><a class="headerlink" href="#book" title="Permalink to this headline">Book</a></h1>
77
<img src="_images/symfony-logo.png">
8-
<p>Here is a link to the <em>main index</em><span
9-
class="footnote"><code>https://symfony.com/doc/4.0/index.html</code></span>
10-
</p>
8+
<p>Here is a link to the <a href="#index" class="reference internal">main index</a></p>
119
<div class="toctree-wrapper compound">
1210
<ul>
13-
<li><a href="#book-first-page-first-page">First page</a></li>
14-
<li><a href="#book-second-page-second-page">Second page</a></li>
11+
<li><a href="https://symfony.com/doc/4.0/book/first-page.html#first-page">First page</a></li>
12+
<li><a href="https://symfony.com/doc/4.0/book/second-page.html#second-page">Second page</a></li>
13+
1514
</ul>
1615
</div>
1716
</div>
1817

1918
</div>
2019
<div id="book-first-page">
21-
<div class="section" id="book-first-page-first-page">
22-
<h1>First page</h1>
20+
<div class="section">
21+
<h1 id="book-first-page-first-page">
22+
<a class="headerlink" href="#first-page" title="Permalink to this headline">First page</a>
23+
</h1>
24+
2325
</div>
2426

2527
</div>
2628
<div id="book-second-page">
27-
<div class="section" id="book-second-page-second-page">
28-
<h1>Second page</h1>
29+
<div class="section">
30+
<h1 id="book-second-page-second-page">
31+
<a class="headerlink" href="#second-page" title="Permalink to this headline">Second page</a>
32+
</h1>
33+
2934
</div>
3035

3136
</div>

0 commit comments

Comments
 (0)