Skip to content

Commit 8ec641d

Browse files
authored
Merge pull request #804 from mozilla/tracy/fix_bug_1988741
tracy/ fix trigger download dialog test
2 parents 9a73060 + 862733b commit 8ec641d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/pdf_viewer/test_download_triggered_on_content_disposition_attachment.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,14 @@ def test_download_panel_triggered_on_content_disposition_attachment(
4444
# set download option for pdf as always ask
4545
about_prefs.select_content_and_action("application/pdf", "Always ask")
4646
# search pdf file
47+
tabs.open()
4748
nav.search(CONTENT_DISPOSITION_ATTACHMENT_URL)
49+
4850
# wait till open option is available
4951
sleep(3)
5052
browser_actions.select_file_opening_option()
5153

5254
tabs.wait_for_num_tabs(2)
5355
tabs.switch_to_new_tab()
54-
## url_contains isn't working for some reason.
55-
# assert driver.current_url.endswith(".pdf"), f"New tab should be a pdf file."
56+
5657
nav.url_contains(".pdf")

0 commit comments

Comments
 (0)