Add Reddit comments and X definitions
This commit is contained in:
parent
40895e05db
commit
1a9ab6ebdf
7 changed files with 129 additions and 2 deletions
9
tests/fixtures/reddit-old-feed.html
vendored
Normal file
9
tests/fixtures/reddit-old-feed.html
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<div id="siteTable">
|
||||
<div class="thing link" data-fullname="t3_abc123">
|
||||
<p class="title"><a class="title" href="https://old.reddit.com/r/example/comments/abc123/example_post/">A useful Reddit post</a></p>
|
||||
<div class="entry"><div class="expando"><div class="md">Hidden expanded media controls</div></div><div class="md"><p>The post body with visible text.</p></div></div>
|
||||
</div>
|
||||
<div class="thing comment" data-fullname="t1_def456">
|
||||
<div class="entry"><div class="md"><p>A useful comment with visible text.</p></div><a class="bylink" href="https://old.reddit.com/r/example/comments/abc123/example_post/def456/">permalink</a></div>
|
||||
</div>
|
||||
</div>
|
||||
7
tests/fixtures/x-feed.html
vendored
Normal file
7
tests/fixtures/x-feed.html
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<main>
|
||||
<article data-testid="tweet">
|
||||
<div data-testid="User-Name"><span>alice</span></div>
|
||||
<a href="/alice/status/1234567890"><time datetime="2026-08-25T00:00:00.000Z">1h</time></a>
|
||||
<div data-testid="tweetText">A useful post on X.</div>
|
||||
</article>
|
||||
</main>
|
||||
Loading…
Reference in a new issue