deleted redundant assertions from apps.dashboard.tests; removed redundant table code from home.html now that list.html includes it; updated FTs to accomodate the title change to "Dashboard" in home.html
This commit is contained in:
@@ -33,9 +33,9 @@ class NewVisitorTest(LiveServerTestCase):
|
||||
def test_can_start_a_todo_list(self):
|
||||
self.browser.get(self.live_server_url)
|
||||
|
||||
self.assertIn("To-Do", self.browser.title)
|
||||
self.assertIn('Dashboard', self.browser.title)
|
||||
header_text = self.browser.find_element(By.TAG_NAME, 'h1').text
|
||||
self.assertIn('To-Do', header_text)
|
||||
self.assertIn('Dashboard', header_text)
|
||||
|
||||
inputbox = self.browser.find_element(By.ID, 'id-new-item')
|
||||
self.assertEqual(inputbox.get_attribute('placeholder'), 'Enter a to-do item')
|
||||
|
||||
Reference in New Issue
Block a user