Skip to content

Commit 391c960

Browse files
Implemented raw Playwright calls in test
1 parent d75a81a commit 391c960

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/test_search.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,15 @@
33
"""
44

55

6-
def test_basic_duckduckgo_search():
6+
def test_basic_duckduckgo_search(page):
7+
78
# Given the DuckDuckGo home page is displayed
9+
page.goto('https://www.duckduckgo.com')
10+
811
# When the user searches for a phrase
12+
page.fill('#search_form_input_homepage', 'panda')
13+
page.click('#search_button_homepage')
14+
915
# Then the search result query is the phrase
1016
# And the search result links pertain to the phrase
1117
# And the search result title contains the phrase

0 commit comments

Comments
 (0)