Skip to content

Commit 6aa02cc

Browse files
committed
Adjust test to match changes in about:about content
1 parent ab4f916 commit 6aa02cc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/find_toolbar/test_find_toolbar_nav.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ def test_case():
1616
TOLERANCE = 3
1717

1818
TARGET_PAGE = "about:about"
19-
DELETE_PROFILE_SELECTOR = "a[href='about:deleteprofile']"
2019
PROCESSES_SELECTOR = "a[href='about:processes']"
20+
PROTECTIONS_SELECTOR = "a[href='about:protections']"
2121

22-
first_match = (By.CSS_SELECTOR, DELETE_PROFILE_SELECTOR)
23-
fourth_match = (By.CSS_SELECTOR, PROCESSES_SELECTOR)
22+
first_match = (By.CSS_SELECTOR, PROCESSES_SELECTOR)
23+
fourth_match = (By.CSS_SELECTOR, PROTECTIONS_SELECTOR)
2424

2525

2626
def are_lists_different(a: int, b: int) -> bool:
@@ -42,7 +42,7 @@ def test_find_toolbar_navigation(
4242
find_toolbar.open()
4343
find_toolbar.find("pro")
4444
match_status = find_toolbar.match_dict
45-
assert match_status["total"] == 7
45+
assert match_status["total"] == 4
4646

4747
# Sometimes we get a match that isn't the first
4848
# (This also tests that the number is correct)

0 commit comments

Comments
 (0)