Skip to content

Commit a385401

Browse files
committed
Update an example test
1 parent 4d1076c commit a385401

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

integrations/node_js/my_first_test.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ class MyTestClass(BaseCase):
55

66
def test_basic(self):
77
self.open("https://store.xkcd.com/search")
8-
self.type('input[name="q"]', "xkcd book\n")
8+
self.type('input[name="q"]', "xkcd book")
9+
self.click('input[value="Search"]')
910
self.assert_text("xkcd: volume 0", "h3")
1011
self.open("https://xkcd.com/353/")
1112
self.assert_title("xkcd: Python")
@@ -15,3 +16,5 @@ def test_basic(self):
1516
self.go_back()
1617
self.click_link_text("About")
1718
self.assert_exact_text("xkcd.com", "h2")
19+
self.click_link_text("geohashing")
20+
self.assert_element("#comic img")

0 commit comments

Comments
 (0)