Skip to content

Commit 431be3b

Browse files
committed
Make check adaptable to webpage title changes
1 parent 89d8b7e commit 431be3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/address_bar_and_search/test_adaptive_history_autofill.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def test_add_adaptive_history_autofill(driver: Firefox):
3333
# Step 1: Visit the test site and verify tab title
3434
nav.search(TEST_URL)
3535
WebDriverWait(driver, WAIT_TIMEOUT).until(
36-
lambda d: tabs.get_tab_title(tabs.get_tab(1)) == EXPECTED_TITLE
36+
lambda d: tabs.expect_title_contains(EXPECTED_TITLE)
3737
)
3838

3939
# Step 2: Open new tab, close the original

0 commit comments

Comments
 (0)