Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Treat hidden DOM elements before treating media files. #1780

Merged
merged 2 commits into from
Feb 18, 2023

Conversation

pavel-karatsiuba
Copy link
Contributor

@pavel-karatsiuba pavel-karatsiuba commented Feb 14, 2023

Before downloading media files need to remove hidden elements from HTML

fixes #849
fixes #1765

@kelson42
Copy link
Collaborator

@pavel-karatsiuba please add a test. addind to one of the e2e test, an article with such a scenario should be enough

@codecov
Copy link

codecov bot commented Feb 14, 2023

Codecov Report

Base: 69.53% // Head: 69.64% // Increases project coverage by +0.11% 🎉

Coverage data is based on head (08d56d8) compared to base (993cdd9).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1780      +/-   ##
==========================================
+ Coverage   69.53%   69.64%   +0.11%     
==========================================
  Files          23       23              
  Lines        2583     2583              
  Branches      590      590              
==========================================
+ Hits         1796     1799       +3     
  Misses        674      674              
+ Partials      113      110       -3     
Impacted Files Coverage Δ
src/util/saveArticles.ts 80.21% <100.00%> (-0.90%) ⬇️
src/util/misc.ts 73.02% <0.00%> (+0.93%) ⬆️
src/Dump.ts 82.17% <0.00%> (+0.99%) ⬆️
src/MediaWiki.ts 81.57% <0.00%> (+3.28%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@kelson42
Copy link
Collaborator

kelson42 commented Feb 14, 2023

@pavel-karatsiuba Does it fix #1765 as well?

@pavel-karatsiuba
Copy link
Contributor Author

@pavel-karatsiuba Does it fix #1765 as well?

Yes, #1765 is also fixed. I will add a test with the article from #1765.

@kelson42 kelson42 merged commit 89abe74 into main Feb 18, 2023
@kelson42 kelson42 deleted the treatment-sequence branch February 18, 2023 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants