mirror of
https://gitlab.com/news-flash/article_scraper.git
synced 2025-07-07 16:15:32 +02:00
activate mozilla-1 test
This commit is contained in:
parent
027fab7602
commit
063ac07410
2 changed files with 109 additions and 4 deletions
105
resources/tests/readability/mozilla-1/expected.html
Normal file
105
resources/tests/readability/mozilla-1/expected.html
Normal file
|
@ -0,0 +1,105 @@
|
|||
<article><DIV role="main" id="readability-page-1">
|
||||
<div id="intro">
|
||||
|
||||
|
||||
<p>It’s easier than ever to personalize Firefox and make it work the way
|
||||
you do.
|
||||
<br>No other browser gives you so much choice and flexibility.</p>
|
||||
<div id="flexible-top-animation">
|
||||
<p><img src="http://mozorg.cdn.mozilla.net/media/img/firefox/desktop/customize/animations/flexible-top-fallback.c960365ba781.png" alt=""></p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="designed" data-ga-label="Designed to be redesigned">
|
||||
<div id="designed-copy">
|
||||
<h2>Designed to <br>be redesigned</h2>
|
||||
|
||||
<p>Get fast and easy access to the features you use most in the new menu.
|
||||
Open the “Customize” panel to add, move or remove any button you want.
|
||||
Keep your favorite features — add-ons, private browsing, Sync and more
|
||||
— one quick click away.</p>
|
||||
<p><img src="http://mozorg.cdn.mozilla.net/media/img/firefox/desktop/customize/designed-redesigned.fbd3ee9402e6.png" alt="" id="designed-mobile" data-src="//mozorg.cdn.mozilla.net/media/img/firefox/desktop/customize/designed-redesigned.fbd3ee9402e6.png" data-high-res-src="//mozorg.cdn.mozilla.net/media/img/firefox/desktop/customize/designed-redesigned-high-res.6efd60766484.png">
|
||||
</p>
|
||||
</div>
|
||||
<div id="flexible-bottom-animation">
|
||||
<p><img src="http://mozorg.cdn.mozilla.net/media/img/firefox/desktop/customize/animations/flexible-bottom-fallback.cafd48a3d0a4.png" alt=""></p>
|
||||
</div>
|
||||
</div>
|
||||
<div data-ga-label="More ways to customize" id="customize">
|
||||
<h2>More ways to customize</h2>
|
||||
|
||||
<ul id="customizer-list" role="tablist">
|
||||
<li> <a id="customize-themes" href="#themes">
|
||||
|
||||
Themes
|
||||
</a>
|
||||
|
||||
</li>
|
||||
<li> <a id="customize-addons" href="#add-ons">
|
||||
|
||||
Add-ons
|
||||
</a>
|
||||
|
||||
</li>
|
||||
<li> <a id="customize-awesomebar" href="#awesome-bar">
|
||||
|
||||
Awesome Bar
|
||||
</a>
|
||||
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="customizers-wrapper">
|
||||
<div role="tabpanel" id="themes" aria-labelledby="customize-themes">
|
||||
<div>
|
||||
<h3>Themes</h3>
|
||||
|
||||
<p>Make Firefox match your style. Choose from thousands of themes and dress
|
||||
up your browser with a single click.</p>
|
||||
<p><a rel="external" href="https://addons.mozilla.org/firefox/themes/" target="_blank">Try it now</a>
|
||||
|
||||
<br> <a rel="external" href="https://support.mozilla.org/kb/use-themes-change-look-of-firefox" target="_blank">Learn more</a>
|
||||
|
||||
</p>
|
||||
</div> <p><a href="#add-ons" role="button">Next</a></p>
|
||||
<p><img id="theme-demo" src="http://mozorg.cdn.mozilla.net/media/img/firefox/desktop/customize/theme-red.61611c5734ab.png" alt="Preview of the currently selected theme">
|
||||
</p>
|
||||
</div>
|
||||
<div aria-labelledby="customize-addons" id="add-ons" role="tabpanel">
|
||||
<div>
|
||||
<h3>Add-ons</h3>
|
||||
<p><a href="#awesome-bar" role="button">Next</a></p>
|
||||
<p>Add-ons are like apps that you install to add features to Firefox. They
|
||||
let you compare prices, check the weather, listen to music, send a tweet
|
||||
and more.</p>
|
||||
<ul>
|
||||
<li>Read the latest news & blogs</li>
|
||||
<li>Manage your downloads</li>
|
||||
<li>Watch videos & view photos</li>
|
||||
</ul> <p><a rel="external" href="https://addons.mozilla.org/firefox/extensions/?sort=featured" target="_blank">Here are a few of our favorites</a>
|
||||
|
||||
<br> <a rel="external" href="https://support.mozilla.org/kb/find-and-install-add-ons-add-features-to-firefox" target="_blank">Learn more</a>
|
||||
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<p><img src="http://mozorg.cdn.mozilla.net/media/img/firefox/desktop/customize/add-ons.63a4b761f822.png" alt="">
|
||||
</p>
|
||||
</div>
|
||||
<div id="awesome-bar" role="tabpanel" aria-labelledby="customize-awesomebar">
|
||||
<div>
|
||||
<h3>Awesome Bar</h3>
|
||||
<p><a href="#themes" role="button">Next</a></p>
|
||||
<p>The Awesome Bar learns as you browse to make your version of Firefox unique.
|
||||
Find and return to your favorite sites without having to remember a URL.</p>
|
||||
<p><a rel="external" href="https://support.mozilla.org/kb/awesome-bar-find-your-bookmarks-history-and-tabs" target="_blank">See what it can do for you</a>
|
||||
</p>
|
||||
</div>
|
||||
<p><img src="http://mozorg.cdn.mozilla.net/media/img/firefox/desktop/customize/awesome-bar.437df162126c.png" alt="Firefox Awesome Bar">
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<section id="sync" data-ga-label="Keep your Firefox in Sync">
|
||||
|
||||
</section>
|
||||
</DIV></article>
|
|
@ -352,10 +352,10 @@ async fn missing_paragraphs() {
|
|||
run_test("missing-paragraphs").await
|
||||
}
|
||||
|
||||
// #[tokio::test]
|
||||
// async fn mozilla_1() {
|
||||
// run_test("mozilla-1").await
|
||||
// }
|
||||
#[tokio::test]
|
||||
async fn mozilla_1() {
|
||||
run_test("mozilla-1").await
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
async fn webmd_1() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue