diff --git a/src/functional_tests/tests.py b/src/functional_tests/tests.py index ec49aaf..7d99131 100644 --- a/src/functional_tests/tests.py +++ b/src/functional_tests/tests.py @@ -22,7 +22,7 @@ class NewVisitorTest(LiveServerTestCase): try: table = self.browser.find_element_by_id('id_list_table') 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 except (AssertionError, WebDriverException) as e: 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 # that the site has generated a unique URL for her -- there is some # explanatory text to that effect. - + self.fail('Finish the test!') + # She visits that URL - her to-do list is still there. # Satisfied, she goes back to sleep \ No newline at end of file