|
|
@@ -6,7 +6,7 @@ from selenium.common.exceptions import WebDriverException
|
|
|
import time
|
|
|
import unittest
|
|
|
|
|
|
-MAX_WAIT = 10
|
|
|
+MAX_WAIT = 3
|
|
|
|
|
|
class NewVisitorTest(LiveServerTestCase):
|
|
|
|
|
|
@@ -27,7 +27,7 @@ class NewVisitorTest(LiveServerTestCase):
|
|
|
except (AssertionError, WebDriverException) as e:
|
|
|
if time.time() - start_time > MAX_WAIT:
|
|
|
raise e
|
|
|
- time.sleep(0.5)
|
|
|
+ time.sleep(0.2)
|
|
|
|
|
|
def test_can_start_a_list_for_one_user(self):
|
|
|
# Edith has heard about a cool new online to-do app. She goes
|
|
|
@@ -39,6 +39,9 @@ class NewVisitorTest(LiveServerTestCase):
|
|
|
header_text = self.browser.find_element_by_tag_name('h1').text
|
|
|
self.assertIn('Your Movie list', header_text)
|
|
|
|
|
|
+ header_text = self.browser.find_element_by_tag_name('h2').text
|
|
|
+ self.assertIn('Not logged-in', header_text)
|
|
|
+
|
|
|
# She is invited to enter a to-do item straight away
|
|
|
inputbox = self.browser.find_element_by_id('input-new-movie')
|
|
|
self.assertEqual(
|