Skip to content

Commit 0112404

Browse files
committed
Update constant
1 parent 89d8b7e commit 0112404

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/address_bar_and_search/test_adaptive_history_autofill.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
WAIT_TIMEOUT = 10
1010
TEST_URL = "https://www.nationalgeographic.com/science/"
11-
EXPECTED_TITLE = "Science"
11+
EXPECTED_IN_TITLE = "Science"
1212
EXPECTED_TYPE = "autofill_adaptive"
1313
EXPECTED_TEXT_FRAGMENT = "nationalgeographic.com/science"
1414

@@ -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_IN_TITLE)
3737
)
3838

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

0 commit comments

Comments
 (0)