Front page HTML now generated from a template
This commit is contained in:
		| @@ -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> | ||||||
|  |   <head> | ||||||
|     <title>To-Do lists</title> |     <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> | ||||||
		Reference in New Issue
	
	Block a user