7.0 Small Design When Necessary
parent
8cdc3ec319
commit
5c57b306bd
|
@ -22,7 +22,7 @@ class NewVisitorTest(LiveServerTestCase):
|
||||||
try:
|
try:
|
||||||
table = self.browser.find_element_by_id('id_list_table')
|
table = self.browser.find_element_by_id('id_list_table')
|
||||||
rows = table.find_elements_by_tag_name('tr')
|
rows = table.find_elements_by_tag_name('tr')
|
||||||
self.assertIn('foo', [row.text for row in rows])
|
self.assertIn(row_text, [row.text for row in rows])
|
||||||
return
|
return
|
||||||
except (AssertionError, WebDriverException) as e:
|
except (AssertionError, WebDriverException) as e:
|
||||||
if time.time() - start_time > MAX_WAIT:
|
if time.time() - start_time > MAX_WAIT:
|
||||||
|
@ -68,7 +68,8 @@ class NewVisitorTest(LiveServerTestCase):
|
||||||
# Edith wonders whether the site will remember her list. Then she sees
|
# Edith wonders whether the site will remember her list. Then she sees
|
||||||
# that the site has generated a unique URL for her -- there is some
|
# that the site has generated a unique URL for her -- there is some
|
||||||
# explanatory text to that effect.
|
# explanatory text to that effect.
|
||||||
|
self.fail('Finish the test!')
|
||||||
|
|
||||||
# She visits that URL - her to-do list is still there.
|
# She visits that URL - her to-do list is still there.
|
||||||
|
|
||||||
# Satisfied, she goes back to sleep
|
# Satisfied, she goes back to sleep
|
Loading…
Reference in New Issue