Front page HTML now generated from a template
This commit is contained in:
parent
35019b3e4b
commit
ceb22cdf90
@ -36,7 +36,10 @@ class NewVisitorTest(unittest.TestCase):
|
|||||||
|
|
||||||
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.assertTrue(any(row.text == "1: Buy peacock feathers" for row in rows))
|
self.assertTrue(
|
||||||
|
any(row.text == "1: Buy peacock feathers" for row in rows),
|
||||||
|
"New to-do item did not appear in table",
|
||||||
|
)
|
||||||
|
|
||||||
# There is still a text box inviting him to add another item.
|
# There is still a text box inviting him to add another item.
|
||||||
# He enters "Use peacock feathers to make a fly" (Ig is very methodical)
|
# He enters "Use peacock feathers to make a fly" (Ig is very methodical)
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
<html>
|
<html>
|
||||||
<title>To-Do lists</title>
|
<head>
|
||||||
|
<title>To-Do lists</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>Your To-Do list</h1>
|
||||||
|
<input id="id_new_item" placeholder="Enter a to-do item" />
|
||||||
|
<table id="id_list_table">
|
||||||
|
|
||||||
|
</table>
|
||||||
|
</body>
|
||||||
</html>
|
</html>
|
Loading…
Reference in New Issue
Block a user