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 ac9b9de commit 36657faCopy full SHA for 36657fa
tests/test_search.py
@@ -13,6 +13,13 @@ def test_basic_duckduckgo_search(page):
13
page.click('#search_button_homepage')
14
15
# Then the search result query is the phrase
16
+ assert 'panda' == page.input_value('#search_form_input')
17
+
18
# And the search result links pertain to the phrase
19
+ page.locator('.result__title a.result__a >> nth=4').wait_for()
20
+ titles = page.locator('.result__title a.result__a').all_text_contents()
21
+ matches = [t for t in titles if 'panda' in t.lower()]
22
+ assert len(matches) > 0
23
24
# And the search result title contains the phrase
- pass
25
+ assert 'panda' in page.title()
0 commit comments