Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions tests/find_toolbar/test_find_toolbar_nav.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ def test_case():
TOLERANCE = 3

TARGET_PAGE = "about:about"
PROCESSES_SELECTOR = "a[href='about:processes']"
PROTECTIONS_SELECTOR = "a[href='about:protections']"
LOGGING_SELECTOR = "a[href='about:logging']"
LOGO_SELECTOR = "a[href='about:logo']"

first_match = (By.CSS_SELECTOR, PROCESSES_SELECTOR)
fourth_match = (By.CSS_SELECTOR, PROTECTIONS_SELECTOR)
first_match = (By.CSS_SELECTOR, LOGGING_SELECTOR)
fourth_match = (By.CSS_SELECTOR, LOGO_SELECTOR)


def are_lists_different(a: int, b: int) -> bool:
Expand All @@ -40,9 +40,9 @@ def test_find_toolbar_navigation(
driver.get(TARGET_PAGE)

find_toolbar.open()
find_toolbar.find("pro")
find_toolbar.find("log")
match_status = find_toolbar.match_dict
assert match_status["total"] == 4
assert match_status["total"] == 5

# Sometimes we get a match that isn't the first
# (This also tests that the number is correct)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,13 @@ def test_download_panel_triggered_on_content_disposition_attachment(
nav = Navigation(driver)
about_prefs = AboutPrefs(driver, category="general").open()
browser_actions = BrowserActions(driver)

# search for Applications section in settings
about_prefs.find_in_settings("appl")

# set download option for pdf as always ask
about_prefs.select_content_and_action("application/pdf", "Always ask")

# search pdf file
tabs.open()
nav.search(CONTENT_DISPOSITION_ATTACHMENT_URL)
Expand Down
Loading