File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
tests/address_bar_and_search Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 8
8
9
9
WAIT_TIMEOUT = 10
10
10
TEST_URL = "https://www.nationalgeographic.com/science/"
11
- EXPECTED_TITLE = "Science"
11
+ EXPECTED_IN_TITLE = "Science"
12
12
EXPECTED_TYPE = "autofill_adaptive"
13
13
EXPECTED_TEXT_FRAGMENT = "nationalgeographic.com/science"
14
14
@@ -33,7 +33,7 @@ def test_add_adaptive_history_autofill(driver: Firefox):
33
33
# Step 1: Visit the test site and verify tab title
34
34
nav .search (TEST_URL )
35
35
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 )
37
37
)
38
38
39
39
# Step 2: Open new tab, close the original
@@ -42,7 +42,7 @@ def test_add_adaptive_history_autofill(driver: Firefox):
42
42
driver .switch_to .window (driver .window_handles [1 ])
43
43
tabs .close_first_tab_by_icon ()
44
44
45
- # Step 3: Type in address bar, click adaptive suggestion
45
+ # Step 3: Type in address bar, then click adaptive suggestion
46
46
nav .type_in_awesome_bar ("nat" )
47
47
nav .click_firefox_suggest ()
48
48
nav .expect_in_content (EC .url_contains (TEST_URL ))
You can’t perform that action at this time.
0 commit comments