We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89d8b7e commit 0112404Copy full SHA for 0112404
tests/address_bar_and_search/test_adaptive_history_autofill.py
@@ -8,7 +8,7 @@
8
9
WAIT_TIMEOUT = 10
10
TEST_URL = "https://www.nationalgeographic.com/science/"
11
-EXPECTED_TITLE = "Science"
+EXPECTED_IN_TITLE = "Science"
12
EXPECTED_TYPE = "autofill_adaptive"
13
EXPECTED_TEXT_FRAGMENT = "nationalgeographic.com/science"
14
@@ -33,7 +33,7 @@ def test_add_adaptive_history_autofill(driver: Firefox):
33
# Step 1: Visit the test site and verify tab title
34
nav.search(TEST_URL)
35
WebDriverWait(driver, WAIT_TIMEOUT).until(
36
- lambda d: tabs.get_tab_title(tabs.get_tab(1)) == EXPECTED_TITLE
+ lambda d: tabs.expect_title_contains(EXPECTED_IN_TITLE)
37
)
38
39
# Step 2: Open new tab, close the original
0 commit comments