From a385401ac19084f2d05004fd45c2858c4a358171 Mon Sep 17 00:00:00 2001 From: Michael Mintz Date: Wed, 26 Aug 2020 17:30:06 -0400 Subject: [PATCH] Update an example test --- integrations/node_js/my_first_test.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/integrations/node_js/my_first_test.py b/integrations/node_js/my_first_test.py index cb109e52..4ea77ff1 100755 --- a/integrations/node_js/my_first_test.py +++ b/integrations/node_js/my_first_test.py @@ -5,7 +5,8 @@ class MyTestClass(BaseCase): def test_basic(self): self.open("https://store.xkcd.com/search") - self.type('input[name="q"]', "xkcd book\n") + self.type('input[name="q"]', "xkcd book") + self.click('input[value="Search"]') self.assert_text("xkcd: volume 0", "h3") self.open("https://xkcd.com/353/") self.assert_title("xkcd: Python") @@ -15,3 +16,5 @@ class MyTestClass(BaseCase): self.go_back() self.click_link_text("About") self.assert_exact_text("xkcd.com", "h2") + self.click_link_text("geohashing") + self.assert_element("#comic img")