Update an example test

This commit is contained in:
Michael Mintz 2020-08-26 17:30:06 -04:00
parent 4d1076c46d
commit a385401ac1
1 changed files with 4 additions and 1 deletions

View File

@ -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")