Skip to content

Commit

Permalink
fix: Skip urls containing pdf in default tests
Browse files Browse the repository at this point in the history
  • Loading branch information
j3soon committed Jun 1, 2024
1 parent 12a53e5 commit 54fe365
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_default.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
print(f"- Title: `{title}`")
print(f"- Description: {description}")

if url.endswith('.pdf'):
if 'pdf' in url:
# The current page title is `about:blank` with `application/pdf` as the content type.
# The pdf is stored in a embed frame `/html/body/embed`.
# However, I don't think it's possible to switch to that frame, since the PDF viewer itself is an extension.
Expand Down

0 comments on commit 54fe365

Please sign in to comment.