Skip to content

Commit 490bfcf

Browse files
committed
Adjust tests for calculator.
1 parent f33dbbc commit 490bfcf

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

tests/web-tests.py

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,5 @@ def setUp(self):
1010

1111
def testPageTitle(self):
1212
self.browser.get('http://localhost:5000/all')
13-
self.assertIn('My Todo List', self.browser.title)
13+
self.assertIn('Calculator', self.browser.title)
1414

15-
def testLogin(self):
16-
self.browser.get('http://localhost:5000/all')
17-
18-
# Logout just incase
19-
self.browser.get('http://localhost:5000/logout')
20-
21-
# Login button exists
22-
self.assertIsNotNone(self.browser.find_element_by_css_selector('a[href="/login"]'))
23-
24-
# Click the login button
25-
self.browser.find_element_by_css_selector('a[href="/login"]').click()
26-
27-
# Use the login form
28-
self.browser.find_element_by_css_selector('input[name="name"]').send_keys("admin")
29-
self.browser.find_element_by_css_selector('input[name="password"]').send_keys("password")
30-
self.browser.find_element_by_css_selector('input[type="submit"]').click()
31-
32-
# We have successfully logged in and are at the "all tasks" page
33-
self.assertIn("/all", self.browser.current_url)

0 commit comments

Comments
 (0)