File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -16,11 +16,11 @@ def test_case():
1616TOLERANCE = 3
1717
1818TARGET_PAGE = "about:about"
19- PROCESSES_SELECTOR = "a[href='about:processes ']"
20- PROTECTIONS_SELECTOR = "a[href='about:protections ']"
19+ LOGGING_SELECTOR = "a[href='about:logging ']"
20+ LOGO_SELECTOR = "a[href='about:logo ']"
2121
22- first_match = (By .CSS_SELECTOR , PROCESSES_SELECTOR )
23- fourth_match = (By .CSS_SELECTOR , PROTECTIONS_SELECTOR )
22+ first_match = (By .CSS_SELECTOR , LOGGING_SELECTOR )
23+ fourth_match = (By .CSS_SELECTOR , LOGO_SELECTOR )
2424
2525
2626def are_lists_different (a : int , b : int ) -> bool :
@@ -40,9 +40,9 @@ def test_find_toolbar_navigation(
4040 driver .get (TARGET_PAGE )
4141
4242 find_toolbar .open ()
43- find_toolbar .find ("pro " )
43+ find_toolbar .find ("log " )
4444 match_status = find_toolbar .match_dict
45- assert match_status ["total" ] == 4
45+ assert match_status ["total" ] == 5
4646
4747 # Sometimes we get a match that isn't the first
4848 # (This also tests that the number is correct)
Original file line number Diff line number Diff line change @@ -39,10 +39,13 @@ def test_download_panel_triggered_on_content_disposition_attachment(
3939 nav = Navigation (driver )
4040 about_prefs = AboutPrefs (driver , category = "general" ).open ()
4141 browser_actions = BrowserActions (driver )
42+
4243 # search for Applications section in settings
4344 about_prefs .find_in_settings ("appl" )
45+
4446 # set download option for pdf as always ask
4547 about_prefs .select_content_and_action ("application/pdf" , "Always ask" )
48+
4649 # search pdf file
4750 tabs .open ()
4851 nav .search (CONTENT_DISPOSITION_ATTACHMENT_URL )
You can’t perform that action at this time.
0 commit comments